[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

R. David Murray report at bugs.python.org
Thu Apr 21 20:28:25 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

You subclassed unicode.  So print printed the value of your unicode object, which didn't need coercion.

----------
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list