• 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
..
Makefile.in Loading commit data...
abstract.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.c Loading commit data...
dictobject.c Loading commit data...
fileobject.c Loading commit data...
floatobject.c Loading commit data...
frameobject.c Loading commit data...
funcobject.c Loading commit data...
intobject.c Loading commit data...
listobject.c Loading commit data...
longobject.c Loading commit data...
methodobject.c Loading commit data...
moduleobject.c Loading commit data...
object.c Loading commit data...
rangeobject.c Loading commit data...
sliceobject.c Loading commit data...
stringobject.c Loading commit data...
tupleobject.c Loading commit data...
typeobject.c Loading commit data...
xxobject.c Loading commit data...