0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 03:01:36 +01:00
cpython/Objects
Tim Peters 3cfe75470d PyType_Ready(): Complain if the type is a base type, and gc'able, and
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.
2003-05-21 21:29:48 +00:00
..
.cvsignore
abstract.c Removed duplicate test from inner loop. 2003-03-01 01:44:32 +00:00
boolobject.c - bool() called without arguments now returns False rather than 2003-04-19 18:15:10 +00:00
bufferobject.c
cellobject.c
classobject.c Make it possible to call instancemethod() with 2 arguments. 2003-04-09 19:35:08 +00:00
cobject.c
complexobject.c Fix from Greg Chapman from SF bug #695651: a complex subclass 2003-03-02 13:51:47 +00:00
descrobject.c property_traverse() should also traverse into prop_doc -- there's no 2003-04-09 17:05:33 +00:00
dictnotes.txt Add notes from python-dev about readonly dictionaries. 2003-05-05 21:31:51 +00:00
dictobject.c SF patch #729395: Dictionary tuning 2003-05-07 00:49:40 +00:00
enumobject.c Add a useful docstring to enumerate. 2003-04-21 20:26:25 +00:00
fileobject.c Only encode Unicode objects when printing them raw. 2003-05-18 12:56:25 +00:00
floatobject.c _PyFloat_Pack4(): Removed needless call of floor(). 2003-03-21 17:10:03 +00:00
frameobject.c Refactor the logic for setting f_builtins. 2003-02-05 22:39:29 +00:00
funcobject.c SF bug #692959: new.function ignores keyword arguments 2003-05-06 09:01:41 +00:00
intobject.c SF # 595026: support for masks in getargs.c. 2003-04-17 18:55:45 +00:00
iterobject.c Renamed PyObject_GenericGetIter to PyObject_SelfIter 2003-03-17 19:46:11 +00:00
listobject.c SF bug #604716: faster [None]*n or []*n 2003-05-21 05:58:46 +00:00
listsort.txt
longobject.c SF patch 730594: assert from longobject.c, line 1215. 2003-05-05 20:39:43 +00:00
methodobject.c Make __module__ writable except in restricted mode (like for classic classes). 2003-02-18 17:18:35 +00:00
moduleobject.c
object.c _Py_PrintReferenceAddresses(): also print the type name. In real use 2003-04-18 00:45:59 +00:00
obmalloc.c
rangeobject.c Renamed PyObject_GenericGetIter to PyObject_SelfIter 2003-03-17 19:46:11 +00:00
sliceobject.c
stringobject.c Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
structseq.c
tupleobject.c SF bug #730296: Unexpected Changes in list Iterator 2003-05-07 01:28:47 +00:00
typeobject.c PyType_Ready(): Complain if the type is a base type, and gc'able, and 2003-05-21 21:29:48 +00:00
unicodectype.c
unicodeobject.c Consider \U-escapes in raw-unicode-escape. Fixes #444514. 2003-05-18 12:31:09 +00:00
unicodetype_db.h
weakrefobject.c - The repr() of a weakref object now shows the __name__ attribute of 2003-04-16 21:13:23 +00:00