[Python-Dev] RE: Hot-To Guide for Descriptors - Nits! :-)

François Pinard pinard at iro.umontreal.ca
Thu Jan 22 14:30:02 EST 2004


[Raymond Hettinger]

> """ The details above show that the mechanism for descriptors is
> embedded in the __getattribute__() methods for object, type, and super.
> Classes inherit this machinery when they derive from object or if they
> have a meta-class providing similar functionality. Likewise, classes can
> turn-off descriptor invocation by overriding __getattribute__().
> """

Nice! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



More information about the Python-Dev mailing list