cpython/Objects
Guido van Rossum 9475a2310d Enable GC for new-style instances. This touches lots of files, since
many types were subclassable but had a xxx_dealloc function that
called PyObject_DEL(self) directly instead of deferring to
self->ob_type->tp_free(self).  It is permissible to set tp_free in the
type object directly to _PyObject_Del, for non-GC types, or to
_PyObject_GC_Del, for GC types.  Still, PyObject_DEL was a tad faster,
so I'm fearing that our pystone rating is going down again.  I'm not
sure if doing something like

void xxx_dealloc(PyObject *self)
{
	if (PyXxxCheckExact(self))
		PyObject_DEL(self);
	else
		self->ob_type->tp_free(self);
}

is any faster than always calling the else branch, so I haven't
attempted that -- however those types whose own dealloc is fancier
(int, float, unicode) do use this pattern.
2001-10-05 20:51:39 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c binary_op1(), ternary_op(): rearrange the code so that slotw is tested 2001-10-01 17:10:18 +00:00
bufferobject.c repr's converted to using PyString_FromFormat() instead of sprintf'ing 2001-08-24 18:34:26 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c SF bug [#466173] unpack TypeError unclear 2001-09-30 05:58:42 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
descrobject.c *EXPERIMENTAL* speedup of slot_sq_item. This sped up the following 2001-10-03 12:09:30 +00:00
dictobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
fileobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
floatobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
frameobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
funcobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
intobject.c Add additional coercion support for "self subtypes" to int, long, 2001-09-19 01:25:16 +00:00
iterobject.c Patch #427190: Implement and use METH_NOARGS and METH_O. 2001-08-16 13:15:00 +00:00
listobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
longobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
methodobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
moduleobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
object.c Merge branch changes (coercion, rich comparisons) into trunk. 2001-09-27 20:30:07 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c repr's converted to using PyString_FromFormat() instead of sprintf'ing 2001-08-24 18:34:26 +00:00
sliceobject.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
stringobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
tupleobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
typeobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Enable GC for new-style instances. This touches lots of files, since 2001-10-05 20:51:39 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00