[Python-Dev] RE: Hot-To Guide for Descriptors (original) (raw)

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