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 arigo
Recipients Carl.Friedrich.Bolz, arigo
Date 2008-10-29.17:46:00
SpamBayes Score 4.3537614e-07
Marked as misclassified No
Message-id <1225302362.81.0.484581196319.issue4230@psf.upfronthosting.co.za>
In-reply-to
Content
The attached example works in the __add__ and __getattribute__ cases on
CPython, but fails in the __getattr__ case.  All three cases work as the
semantics say they should on Jython, IronPython and PyPy.  It's
admittedly an obscure use case. 

There is no reason that __getattr__ should behave differently.  The
behavior of __add__ and __getattribute__ is the "correct" one, according
to the rule that special methods are bound (with __get__) before they
are called.
History
Date User Action Args
2008-10-29 17:46:03arigosetrecipients: + arigo, Carl.Friedrich.Bolz
2008-10-29 17:46:02arigosetmessageid: <1225302362.81.0.484581196319.issue4230@psf.upfronthosting.co.za>
2008-10-29 17:46:01arigolinkissue4230 messages
2008-10-29 17:46:01arigocreate