Nick Coghlan added the comment:

Ezio pointed out on IRC that the extra type checks in str.encode, bytes.decode 
and bytearray.decode should reference the appopriate codecs module function in 
addition to the codec in use.

So if str.encode produces something other than bytes, it should reference 
codecs.encode, while the binary decoding methods should mention codecs.decode 
if they produce something other than str.

----------

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

Reply via email to