Author serhiy.storchaka
Recipients Nam.Nguyen, arigo, eric.araujo, ezio.melotti, lemburg, liori, r.david.murray, serhiy.storchaka, vstinner
Date 2013-08-23.17:15:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377278144.2.0.0962785313145.issue5876@psf.upfronthosting.co.za>
In-reply-to
Content
How it can break backward compatibility? Currently repr() just raises UnicodeEncodeError.

UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in position 0: ordinal not in range(128)

With patch it always returns 8-bit string. As far as repr() usually used for debugging the second alternative looks more helpful.
History
Date User Action Args
2013-08-23 17:15:44serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, arigo, vstinner, ezio.melotti, eric.araujo, r.david.murray, liori, Nam.Nguyen
2013-08-23 17:15:44serhiy.storchakasetmessageid: <1377278144.2.0.0962785313145.issue5876@psf.upfronthosting.co.za>
2013-08-23 17:15:44serhiy.storchakalinkissue5876 messages
2013-08-23 17:15:44serhiy.storchakacreate