Message10884

Author progval
Recipients progval
Date 2016-07-30.09:53:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469872437.8.0.0114440633843.issue2511@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I have the following script:

class Foo(object):
    def __str__(self):
        return 'foo'
    def __getattr__(self, name):
        print(name)

f = Foo()
print('%s' % f)


With CPython and Pypy, it prints:

foo


With Jython 2.7.1b3, it prints:

__getitem__
foo
History
Date User Action Args
2016-07-30 09:53:57progvalsetrecipients: + progval
2016-07-30 09:53:57progvalsetmessageid: <1469872437.8.0.0114440633843.issue2511@psf.upfronthosting.co.za>
2016-07-30 09:53:57progvallinkissue2511 messages
2016-07-30 09:53:57progvalcreate