[Python-Dev] Dinamically set __call__ method

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Nov 9 12:38:07 CET 2014

Ethan Furman wrote:
> And the thing going on is the normal python behavior (in 
> __getattribute__, I believe) of examining the returned attribute to see 
> if it is a descriptor, and if so invoking it.

Only if you look it up through the instance, though.
Normally, if you look up an attribute on a class,
the descriptor protocol doesn't get triggered.


More information about the Python-list mailing list