• Tim Peters's avatar
    PyType_Ready(): Complain if the type is a base type, and gc'able, and · 3cfe7547
    Tim Peters yazdı
    tp_free is NULL or PyObject_Del at the end.  Because it's a base type
    it must call tp_free in its dealloc function, and because it's gc'able
    it must not call PyObject_Del.
    
    inherit_slots():  Don't inherit tp_free unless the type and its base
    agree about whether they're gc'able.  If the type is gc'able and the
    base is not, and the base uses the default PyObject_Del for its
    tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
    default for a gc'able type).
    
    cPickle.c:  The Pickler and Unpickler types claim to be base classes
    and gc'able, but their dealloc functions didn't call tp_free.
    Repaired that.  Also call PyType_Ready() on these typeobjects, so
    that the correct (PyObject_GC_Del) default memory-freeing function
    gets plugged into these types' tp_free slots.
    3cfe7547
Adı
Son kayıt (commit)
Son güncelleme
..
.cvsignore Loading commit data...
abstract.c Loading commit data...
boolobject.c Loading commit data...
bufferobject.c Loading commit data...
cellobject.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.c Loading commit data...
descrobject.c Loading commit data...
dictnotes.txt Loading commit data...
dictobject.c Loading commit data...
enumobject.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...
iterobject.c Loading commit data...
listobject.c Loading commit data...
listsort.txt Loading commit data...
longobject.c Loading commit data...
methodobject.c Loading commit data...
moduleobject.c Loading commit data...
object.c Loading commit data...
obmalloc.c Loading commit data...
rangeobject.c Loading commit data...
sliceobject.c Loading commit data...
stringobject.c Loading commit data...
structseq.c Loading commit data...
tupleobject.c Loading commit data...
typeobject.c Loading commit data...
unicodectype.c Loading commit data...
unicodeobject.c Loading commit data...
unicodetype_db.h Loading commit data...
weakrefobject.c Loading commit data...