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 dholth
Recipients dholth, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2013-07-18.21:57:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374184661.92.0.294639601488.issue18373@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3 is supposed to make it easier to do Unicode correctly. str(bytes) does not. I felt strongly enough about that to write this patch.

With this feature my library can have control in a way that is much more practical than ensuring a particular flag has been passed to the interpreter.

It might make sense to modify the patch so str(bytes) can throw a regular exception instead of a warning while under the influence of the new flag. The reason being that the warning will be suppressed the second time around but for this use case you wouldn't want that.
History
Date User Action Args
2013-07-18 21:57:41dholthsetrecipients: + dholth, pitrou, vstinner, r.david.murray, serhiy.storchaka
2013-07-18 21:57:41dholthsetmessageid: <1374184661.92.0.294639601488.issue18373@psf.upfronthosting.co.za>
2013-07-18 21:57:41dholthlinkissue18373 messages
2013-07-18 21:57:41dholthcreate