Georg Brandl <ge...@python.org> added the comment:

In Python 2.x, __unicode__ is called instead of __str__.  Whether that's 
"correct" behavior, I'm not sure, but at least it is consistent with 
"{}".format(K()).

In Python 3.x, __unicode__ doesn't exist and __str__ isn't called; but for 
"{}".format(K()), it is.  Therefore I think here a fix should be made in any 
case.

Benjamin, what do you think?

----------
assignee:  -> benjamin.peterson
nosy: +benjamin.peterson, georg.brandl

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to