[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
- Previous message: [Python-Dev] RE: Hot-To Guide for Descriptors - Nits! :-)
- Next message: [Python-Dev] PyCore sprint for 2004?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] RE: Hot-To Guide for Descriptors - Nits! :-)
- Next message: [Python-Dev] PyCore sprint for 2004?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]