[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

Serhiy Storchaka report at bugs.python.org
Fri Oct 4 10:07:58 CEST 2013


Serhiy Storchaka added the comment:

This is not a bug, str accepts the encoding argument in Python 3. And in contrast to the decode method it works with arbitrary byte-like objects (i.e. array.array).

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list