[issue26151] str(bytes) does __repr__() instead of __str__()

Johnny Wezel report at bugs.python.org
Tue Jan 19 16:58:17 EST 2016


Johnny Wezel added the comment:

> But this leads to uninspectable objects.

An inspection would be done with repr() which should not cause a problem.

Besides. the official and correct way of handling an ff character is to emit a Unicode replacement code, not to issue an exception. Another flaw in the whole story.

----------

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


More information about the Python-bugs-list mailing list