Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 9478d07ee71161a8098da53b4b902899f36bf6ba authored by Guido van Rossum on 07 September 2001, 18:52:13 UTC, committed by Guido van Rossum on 07 September 2001, 18:52:13 UTC
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.
1 parent 317e9f5
Tip revision: 9478d07ee71161a8098da53b4b902899f36bf6ba authored by Guido van Rossum on 07 September 2001, 18:52:13 UTC
PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing
PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing
Tip revision: 9478d07
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 17 bytes |
abstract.c | -rw-r--r-- | 38.0 KB |
bufferobject.c | -rw-r--r-- | 11.1 KB |
cellobject.c | -rw-r--r-- | 2.3 KB |
classobject.c | -rw-r--r-- | 54.4 KB |
cobject.c | -rw-r--r-- | 3.6 KB |
complexobject.c | -rw-r--r-- | 20.7 KB |
descrobject.c | -rw-r--r-- | 23.0 KB |
dictobject.c | -rw-r--r-- | 47.7 KB |
fileobject.c | -rw-r--r-- | 34.2 KB |
floatobject.c | -rw-r--r-- | 20.0 KB |
frameobject.c | -rw-r--r-- | 11.8 KB |
funcobject.c | -rw-r--r-- | 14.0 KB |
intobject.c | -rw-r--r-- | 24.3 KB |
iterobject.c | -rw-r--r-- | 5.8 KB |
listobject.c | -rw-r--r-- | 44.3 KB |
longobject.c | -rw-r--r-- | 51.7 KB |
methodobject.c | -rw-r--r-- | 7.1 KB |
moduleobject.c | -rw-r--r-- | 5.4 KB |
object.c | -rw-r--r-- | 43.1 KB |
obmalloc.c | -rw-r--r-- | 22.2 KB |
rangeobject.c | -rw-r--r-- | 6.9 KB |
sliceobject.c | -rw-r--r-- | 4.4 KB |
stringobject.c | -rw-r--r-- | 83.8 KB |
tupleobject.c | -rw-r--r-- | 14.4 KB |
typeobject.c | -rw-r--r-- | 82.9 KB |
unicodectype.c | -rw-r--r-- | 8.6 KB |
unicodeobject.c | -rw-r--r-- | 129.0 KB |
unicodetype_db.h | -rw-r--r-- | 37.0 KB |
xxobject.c | -rw-r--r-- | 2.4 KB |
Computing file changes ...