[issue24025] str(bytes_obj) should raise an error
R. David Murray
report at bugs.python.org
Wed Apr 22 15:52:34 CEST 2015
R. David Murray added the comment:
str accepting bytes and returning the repr was a conscious design choice, as evidenced by the -bb option, and I'm sure there is code that is both unintentionally and *intentionally* using this, despite the warning. Unless we want to discuss making the -bb behavior the default in a future version of python, this issue should be closed.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24025>
_______________________________________
More information about the Python-bugs-list
mailing list