This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients Guillaume.Bouchard, docs@python, eric.araujo, pitrou, r.david.murray
Date 2011-12-10.16:02:26
SpamBayes Score 4.7536028e-06
Marked as misclassified No
Message-id <1323533007.36.0.551798983157.issue13538@psf.upfronthosting.co.za>
In-reply-to
Content
A note in the docs (without note/warning directives, just a note) and maybe the docstring would be good.  It should better explain that str has two uses: converting anything to a str (using __str__ or __repr__), decode buffer to str (with encoding and errors arguments).  str(b'') is a case of the first use, not the second (and likewise %s formatting).
History
Date User Action Args
2011-12-10 16:03:27eric.araujosetrecipients: + eric.araujo, pitrou, r.david.murray, docs@python, Guillaume.Bouchard
2011-12-10 16:03:27eric.araujosetmessageid: <1323533007.36.0.551798983157.issue13538@psf.upfronthosting.co.za>
2011-12-10 16:02:26eric.araujolinkissue13538 messages
2011-12-10 16:02:26eric.araujocreate