Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
I did some experimentation and found some inconsistency between int and complex: >>> 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 but >>> complex('\xA11') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: complex() arg is a malformed string The int behavior is probably a bug that should be reported separately. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9574> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com