cpython/Objects
Guido van Rossum 9478d07ee7 PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing
a->tp_mro.  If a doesn't have class, it's considered a subclass only
of itself or of 'object'.

This one fix is enough to prevent the ExtensionClass test suite from
dumping core, but that doesn't say much (it's a rather small test
suite).  Also note that for ExtensionClass-defined types, a different
subclass test may be needed.  But I haven't checked whether
PyType_IsSubtype() is actually used in situations where this matters
-- probably it doesn't, since we also don't check for classic classes.
2001-09-07 18:52:13 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Patch #445762: Support --disable-unicode 2001-08-17 18:39:25 +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 Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back. 2001-09-05 22:52:50 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Revert parts of patch #453627, documenting the resulting test failures 2001-09-06 08:16:17 +00:00
descrobject.c Rename 'getset' to 'property'. 2001-09-06 21:56:42 +00:00
dictobject.c Repair typo in comment. 2001-09-02 18:35:54 +00:00
fileobject.c Enable large file support on Win32 systems. 2001-09-06 00:32:15 +00:00
floatobject.c Better error msg for 3-arg pow with a float argument. 2001-09-05 23:49:24 +00:00
frameobject.c Squash new compiler wng in debug build. 2001-08-30 00:32:51 +00:00
funcobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
intobject.c Make the error msgs in our pow() implementations consistent. 2001-09-05 06:24:58 +00:00
iterobject.c Patch #427190: Implement and use METH_NOARGS and METH_O. 2001-08-16 13:15:00 +00:00
listobject.c Give the internal immutable list type .extend and .pop methods (they 2001-08-30 06:15:32 +00:00
longobject.c long_true_divide: reliably force underflow to 0 when the denominator 2001-09-06 21:59:14 +00:00
methodobject.c Removed some unreachable break statements to silence SGI compiler. 2001-08-30 13:58:58 +00:00
moduleobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
object.c At Guido's suggestion, here's a new C API function, PyObject_Dir(), like 2001-09-04 22:08:56 +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 Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
stringobject.c Fix a memory leak in str_subtype_new(). (All the other 2001-08-31 16:11:15 +00:00
tupleobject.c Rewrite the tuple() docstring to parallel the list() docstring. 2001-09-02 06:42:25 +00:00
typeobject.c PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing 2001-09-07 18:52:13 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Make unicode subclassable. 2001-08-30 03:12:59 +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