Confusion about __call__ and attribute lookup

Kent Johnson kent37 at tds.net
Sun Nov 13 19:05:23 EST 2005


John J. Lee wrote:
> Kent Johnson <kent37 at tds.net> writes:
> 
>>Leif K-Brooks wrote:
>>
>>>New-style classes look up special methods on the class, not on the instance:
>>
>>For my future reference, is this documented somewhere in the standard docs?
> 
> Maybe somewhere in here :-(
> 
> http://www.python.org/doc/newstyle.html

I have never found it there. I think something like the writeup Serge referenced should be in the language reference. I just sent the suggestion to docs at python.org

Thanks to both of you,
Kent



More information about the Python-list mailing list