diff options
author | Guido van Rossum <guido@python.org> | 1994-08-12 12:49:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-12 12:49:46 (GMT) |
commit | e149fa2a1e34d18497579fff198c7ac2feb19096 (patch) | |
tree | c6eff9749f434fad29134aaf48f569bcd7d1afe9 /TODO | |
parent | e025e31de6973ce6bb7d8ee988683acf9cb9ff92 (diff) | |
download | cpython-e149fa2a1e34d18497579fff198c7ac2feb19096.zip cpython-e149fa2a1e34d18497579fff198c7ac2feb19096.tar.gz cpython-e149fa2a1e34d18497579fff198c7ac2feb19096.tar.bz2 |
* Objects/classobject.c, Include/classobject.h: added __getattr__
and __setattr__ support to override getattr(x, name) and
setattr(x, name, value) for class instances. This uses a special
hack whereby the class is supposed to be static: the __getattr__
and __setattr__ methods are looked up only once and saved in the
instance structure for speed
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions