3 ms·That does not work on Python 3 as repr now includes unicode characters.by the_mitsuhiko 12y agoThat does not work on Python 3 as repr now includes unicode characters.eeZi 12y agoIt does, in fact, work on Python 3.deleted 12y ago[deleted]mjcohen 12y agoSo which of you are correct?rpcope1 12y agoI think Armin has got it; repr() is allowed (and does) to return unicode in Python 3, where as it's explicitly expected in Python 2.x that it will return a byte string.