[Python-Dev] Dinamically set __call__ method
Gregory Ewing
greg.ewing at canterbury.ac.nz
Sun Nov 9 06:38:07 EST 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.
--
Greg
More information about the Python-list
mailing list