[issue13538] Improve doc for str(bytesobject)
Oct. 15, 2012
6:05 p.m.
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@bugs.python.org> <http://bugs.python.org/issue13538> _______________________________________
4809
Age (days ago)
4809
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ezio Melotti