Author chris.jerdonek
Recipients Guillaume.Bouchard, chris.jerdonek, docs@python, eric.araujo, ezio.melotti, pitrou, r.david.murray, terry.reedy
Date 2012-10-15.17:27:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I would just say that str(bytesobj, encoding, errors) is equivalent to bytesobj.decode(encoding, errors) (assuming it really is).

Good suggestion.  And yes, code is shared in the following way:

One thing that would need to be addressed in the str() version is if bytesobj is a PEP 3118 character buffer, after which it falls back to bytesobj.decode(encoding, errors).  I will update the patch so people can see how it looks.
Date User Action Args
2012-10-15 17:27:03chris.jerdoneksetrecipients: + chris.jerdonek, terry.reedy, pitrou, ezio.melotti, eric.araujo, r.david.murray, docs@python, Guillaume.Bouchard
2012-10-15 17:27:03chris.jerdoneksetmessageid: <>
2012-10-15 17:27:03chris.jerdoneklinkissue13538 messages
2012-10-15 17:27:02chris.jerdonekcreate