A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068393.html below:

[Python-Dev] String formatting / unicode 2.5 bug?

[Python-Dev] String formatting / unicode 2.5 bug? [Python-Dev] String formatting / unicode 2.5 bug?John J Lee jjl at pobox.com
Sun Aug 20 02:27:10 CEST 2006
Is this a bug?

# run with 2.4 and then with 2.5 (I'm running release25-maint:51410)
class a(object):

     def __getattribute__(self, name):
         print "accessing %r.%s" % (self, name)
         return object.__getattribute__(self, name)

     def __str__(self):
         print "__str__"
         return u'hi'

print repr(str(a()))
print
print repr("%s" % a())


John

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4