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 pitrou
Recipients Guillaume.Bouchard, docs@python, pitrou, r.david.murray
Date 2011-12-06.13:14:31
SpamBayes Score 2.7072426e-08
Marked as misclassified No
Message-id <1323177272.46.0.54919678862.issue13538@psf.upfronthosting.co.za>
In-reply-to
Content
> Personally I'm not at all sure why str takes encoding and errors
> arguments (I never use them).

Probably because the unicode type also did in 2.x.
And also because it makes it compatible with arbitrary buffer objects:

>>> str(memoryview(b"foo"), "ascii")
'foo'
History
Date User Action Args
2011-12-06 13:14:32pitrousetrecipients: + pitrou, r.david.murray, docs@python, Guillaume.Bouchard
2011-12-06 13:14:32pitrousetmessageid: <1323177272.46.0.54919678862.issue13538@psf.upfronthosting.co.za>
2011-12-06 13:14:31pitroulinkissue13538 messages
2011-12-06 13:14:31pitroucreate