[docs] [issue13538] Improve doc for str(bytesobject)

Ezio Melotti report at bugs.python.org
Mon Oct 15 13:05:10 CEST 2012

Ezio Melotti added the comment:

Instead of documenting what *encoding* and *errors* do, I would just say that str(bytesobj, encoding, errors) is equivalent to bytesobj.decode(encoding, errors) (assuming it really is).  I don't like encodings/decodings done via the str/bytes constructors, and I think the docs should encourage the use of bytes.decode/str.encode.


Python tracker <report at bugs.python.org>

More information about the docs mailing list