Are you all mad? (Re: [Python-Dev] PEP 231, __findattr__())
Barry A. Warsaw
barry@digicool.com
Tue, 5 Dec 2000 21:54:36 -0500
>>>>> "greg" == <greg@cosc.canterbury.ac.nz> writes:
| 1) Make the __dict__ attribute special, so that accessing
| it always bypasses __findattr__.
You're not far from what I came up with right after our delicious
lunch. We're going to invent a new protocol which passes __dict__
into the method as an argument. That way self.__dict__ doesn't need
to be special cased at all because you can get at all the attributes
via a local! So no recursion stop hack is necessary.
More in the updated PEP and patch.
-Barry