Serhiy Storchaka added the comment:

Please don't deprecate the encoding parameter in str. It has a use case. str 
constructor works with any bytes-like objects, even with these that don't have 
the decode method. It raises more appropriate TypeError instead of 
AttributeError, so often you don't need to wrap an error.

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

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24019>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to