This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients benjamin.peterson, eric.smith, ezio.melotti, flox, georg.brandl, steven.daprano
Date 2010-04-27.07:09:22
SpamBayes Score 0.0013996331
Marked as misclassified No
Message-id <1272352164.11.0.437630969062.issue8128@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-04-27 07:09:24georg.brandlsetrecipients: + georg.brandl, eric.smith, benjamin.peterson, ezio.melotti, steven.daprano, flox
2010-04-27 07:09:24georg.brandlsetmessageid: <1272352164.11.0.437630969062.issue8128@psf.upfronthosting.co.za>
2010-04-27 07:09:22georg.brandllinkissue8128 messages
2010-04-27 07:09:22georg.brandlcreate