[issue26151] str(bytes) does __repr__() instead of __str__()
Walter Dörwald
report at bugs.python.org
Tue Jan 19 11:14:00 EST 2016
Walter Dörwald added the comment:
> Who's talking about latin-1 in Python3? Of course str() needs to return decode('utf-8').
So that would mean that:
print(b"\xff")
will always fail!
----------
nosy: +doerwalter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26151>
_______________________________________
More information about the Python-bugs-list
mailing list