Why doesn't __call__ lead to infinite recursion?

Aahz aahz at pythoncraft.com
Sat Aug 16 01:11:46 EDT 2003


In article <bhjg3v$q3m$1 at absinth.dialog.net.pl>,
bromden  <bromden at gazeta.pl.no.spam> wrote:
>> foo is a function
>> foo is a callable object
>> foo has method __call__ defined
>
>true
>true
>false

Wrong.  See my followup.
-- 
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