New submission from Alexander Belopolsky <belopol...@users.sourceforge.net>:
>>> int('\xA11') Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 0: invalid start byte This is inconsistent with other number types' behavior: >>> float(b'\xA1') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: could not convert string to float: � ---------- messages: 113694 nosy: belopolsky, mark.dickinson priority: normal severity: normal status: open title: int() raises UnicodeDecodeError when called on malformed string _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9578> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com