Staging
v0.8.1
https://github.com/python/cpython
Revision 0668c62677e76b2acf7e4d11d5e9c1f4420a54f1 authored by Antoine Pitrou on 26 August 2008, 22:42:08 UTC, committed by Antoine Pitrou on 26 August 2008, 22:42:08 UTC
match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
mechanism. In the process, fix a bug where isinstance() and issubclass(),
when given a tuple of classes as second argument, were looking up
__instancecheck__ / __subclasscheck__ on the tuple rather than on each
type object.

Reviewed by Benjamin Peterson and Raymond Hettinger.
1 parent 14cb6bc
History
Tip revision: 0668c62677e76b2acf7e4d11d5e9c1f4420a54f1 authored by Antoine Pitrou on 26 August 2008, 22:42:08 UTC
Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
Tip revision: 0668c62
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 673 bytes
.hgignore -rw-r--r-- 866 bytes
.hgtags -rw-r--r-- 3.6 KB
LICENSE -rw-r--r-- 13.4 KB
Makefile.pre.in -rw-r--r-- 37.6 KB
README -rw-r--r-- 55.8 KB
configure -rwxr-xr-x 661.7 KB
configure.in -rw-r--r-- 102.5 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.6 KB
setup.py -rw-r--r-- 79.6 KB

README

back to top