Author ncoghlan
Recipients docs@python, ezio.melotti, ncoghlan
Date 2013-02-03.04:01:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359864071.69.0.659089821533.issue17110@psf.upfronthosting.co.za>
In-reply-to
Content
The sys.argv docs [1] currently contain no mention of the fact that they are Unicode strings decoded from bytes provided by the OS. They also don't explain how to correct a decoding error by reversing Python's implicit conversion and redoing it based on the application's knowledge of the correct encoding, as described at [2]

[1] http://docs.python.org/3/library/sys#sys.argv
[2] http://stackoverflow.com/questions/6981594/sys-argv-as-bytes-in-python-3k/
History
Date User Action Args
2013-02-03 04:01:11ncoghlansetrecipients: + ncoghlan, ezio.melotti, docs@python
2013-02-03 04:01:11ncoghlansetmessageid: <1359864071.69.0.659089821533.issue17110@psf.upfronthosting.co.za>
2013-02-03 04:01:11ncoghlanlinkissue17110 messages
2013-02-03 04:01:10ncoghlancreate