[issue16741] `int()`, `float()`, etc think python strings are null-terminated

Serhiy Storchaka report at bugs.python.org
Sun Jun 9 19:23:10 CEST 2013


Serhiy Storchaka added the comment:

Patch updated. It now reuses code for bytes->int in longobject.c and abstract.c, doesn't raise UnicodeDecodeError for non-utf-8 bytes, and always reports an invalid bytes literal as a bytes object.

----------
Added file: http://bugs.python.org/file30515/int_from_str-3.3_2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16741>
_______________________________________


More information about the Python-bugs-list mailing list