[issue5876] __repr__ returning unicode doesn't work when called implicitly

Armin Rigo report at bugs.python.org
Fri Aug 23 19:42:50 CEST 2013


Armin Rigo added the comment:

@Serhiy: it would certainly break a program that tries to call the repr() and catches the UnicodeEncodeError to do something else, like encode the data differently.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5876>
_______________________________________


More information about the Python-bugs-list mailing list