• Guido van Rossum's avatar
    Allow assignments to instance.__dict__ and instance.__class__. The · b2173c31
    Guido van Rossum yazdı
    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).
    b2173c31
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...