Why doesn't __call__ lead to infinite recursion?
Aahz
aahz at pythoncraft.com
Sat Aug 16 14:04:01 EDT 2003
In article <bhlrgb$q0i$1 at slb2.atl.mindspring.net>,
Andrew Dalke <adalke at mindspring.com> wrote:
>
> [...]
No time to investigate further, but all your examples used classic
classes instead of new-style classes; I'm pretty sure that new-style
classes will more closely emulate the way functions work. There's also
the wrinkle I didn't mention that functions use a dict proxy IIRC.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
This is Python. We don't care much about theory, except where it intersects
with useful practice. --Aahz
More information about the Python-list
mailing list