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 ezio.melotti, flox, pitrou, vstinner
Date 2010-08-19.12:36:07
SpamBayes Score 7.126184e-05
Marked as misclassified No
Message-id <1282221369.21.0.910449827697.issue9636@psf.upfronthosting.co.za>
In-reply-to
Content
Well, that's what BytesWarning is for. I agree it is annoying in normal use, but it is meant to ease porting of 2.x code. That's why it is only enabled when you use the corresponding command-line switch.

The warning in the dict case is especially important: otherwise it is easy to get a dict with duplicate bytes and unicode keys (say b"xxx" and "xxx"), and potentially different values.
History
Date User Action Args
2010-08-19 12:36:09pitrousetrecipients: + pitrou, vstinner, ezio.melotti, flox
2010-08-19 12:36:09pitrousetmessageid: <1282221369.21.0.910449827697.issue9636@psf.upfronthosting.co.za>
2010-08-19 12:36:08pitroulinkissue9636 messages
2010-08-19 12:36:07pitroucreate