Staging
v0.5.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
History
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
Tip revision: 9478d07
File Mode Size
RPM
ACKS -rw-r--r-- 6.5 KB
AIX-NOTES -rw-r--r-- 7.3 KB
BeOS-NOTES -rw-r--r-- 1.4 KB
BeOS-setup.py -rw-r--r-- 24.6 KB
HISTORY -rw-r--r-- 305.2 KB
HPUX-NOTES -rw-r--r-- 1.0 KB
Makefile.pre.in -rw-r--r-- 10.0 KB
NEWS -rw-r--r-- 93.5 KB
PURIFY.README -rw-r--r-- 3.6 KB
Porting -rw-r--r-- 1.9 KB
README -rw-r--r-- 1.8 KB
RFD -rw-r--r-- 3.9 KB
cheatsheet -rw-r--r-- 99.9 KB
find_recursionlimit.py -rw-r--r-- 2.2 KB
gdbinit -rw-r--r-- 898 bytes
indent.pro -rw-r--r-- 66 bytes
python-mode.el -rw-r--r-- 120.6 KB
python.man -rw-r--r-- 11.1 KB
setuid-prog.c -rw-r--r-- 5.3 KB
unicode.txt -rw-r--r-- 112 bytes
vgrindefs -rw-r--r-- 505 bytes

README

back to top