string interpolation mystery in Python 2.6

Vlastimil Brom vlastimil.brom at gmail.com
Sat Sep 12 10:07:02 CEST 2009


2009/9/12 Steven D'Aprano <steve at remove-this-cybersource.com.au>:
> On Fri, 11 Sep 2009 15:19:05 -0700, Chris Rebert wrote:
>
>> Sounds like IOError or one of its ancestors defines both __str__() and
>> __unicode__ () special methods but has them produce different output.
>
>
> That's what it looks like to me too, which I wouldn't call either a bug
> or a feature. I don't think Python makes any promises regarding exception
> messages.
>
>

There are some report about the apparently same issue in the bug tracker.
http://bugs.python.org/issue5274
http://bugs.python.org/issue6108

vbr



More information about the Python-list mailing list