diff options
author | Guido van Rossum <guido@python.org> | 1997-08-25 21:23:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-25 21:23:56 (GMT) |
commit | b2173c3146e945100ba53bfe6343d20ec3c9a333 (patch) | |
tree | 8e69dd57a2a4bdf072e2b7747405f1cd83b851d2 /Demo/metaclasses/index.html | |
parent | a27d11221303d9cc6a2359b6de2cdaba6a2b1e97 (diff) | |
download | cpython-b2173c3146e945100ba53bfe6343d20ec3c9a333.zip cpython-b2173c3146e945100ba53bfe6343d20ec3c9a333.tar.gz cpython-b2173c3146e945100ba53bfe6343d20ec3c9a333.tar.bz2 |
Allow assignments to instance.__dict__ and instance.__class__. The
former lets you give an instance a set of new instance vars. The
latter lets you give it a new class. Both are typechecked and
disallowed in restricted mode.
For classes, the check for read-only special attributes is tightened
so that only assignments to __dict__, __bases__, __name__,
__getattr__, __setattr__, and __delattr__ (these could be made to work
as well, but I don't know if that's useful -- let's see first whether
mucking with instances will help).
Diffstat (limited to 'Demo/metaclasses/index.html')
0 files changed, 0 insertions, 0 deletions