• Guido van Rossum's avatar
    Allow assignments to special class attributes -- with typechecks, and · a63eff6e
    Guido van Rossum yazdı
    not in restricted mode.
    
    __dict__ can be set to any dictionary; the cl_getattr, cl_setattr and
    cl_delattr slots are refreshed.
    
    __name__ can be set to any string.
    
    __bases__ can be set to to a tuple of classes, provided they are not
    subclasses of the class whose attribute is being assigned.
    
    __getattr__, __setattr__ and __delattr__ can be set to anything, or
    deleted; the appropriate slot (cl_getattr, cl_setattr, cl_delattr) is
    refreshed.
    
    (Note: __name__ really doesn't need to be a special attribute, but
    that would be more work.)
    a63eff6e
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...