3 ms·
"The default behavior for attribute access is to get, set, or delete the attribute from an object’s dictionary. For instance, a.x has a lookup chain starting wi
by laughinghan 15y ago
"The default behavior for attribute access is to get, set, or delete the attribute from an object’s dictionary. For instance, a.x has a lookup chain starting with a.__dict__['x'], then type(a).__dict__['x'], and continuing through the base classes of type(a) excluding metaclasses."
http://docs.python.org/reference/datamodel.html#invoking-descriptors http://docs.python.org/reference/datamodel.html#invoking-des...