[issue24019] str/unicode encoding kwarg causes exceptions
Eric V. Smith
report at bugs.python.org
Wed Apr 22 05:16:58 CEST 2015
Eric V. Smith added the comment:
I agree with deprecating (in the documentation) but never removing the encoding argument to str() in Python 3. .decode() is the better way to convert a bytes-like object to a str.
Every change proposed here would be an enhancement in 2.7, and we are not implementing enhancements there.
----------
versions: +Python 3.6 -Python 2.7, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24019>
_______________________________________
More information about the Python-bugs-list
mailing list