Staging
v0.8.1
Revision f4ff4702a87a0c1e6169d7c58612b3e6a04df8c3 authored by Antoine Pitrou on 26 August 2008, 22:44:20 UTC, committed by Antoine Pitrou on 26 August 2008, 22:44:20 UTC
........
  r66043 | antoine.pitrou | 2008-08-27 00:42:08 +0200 (mer., 27 août 2008) | 11 lines

  Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
  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 ec569b7
History
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 673 bytes
.hgignore -rw-r--r-- 866 bytes
.hgtags -rw-r--r-- 2.9 KB
INTBENCH -rw-r--r-- 941 bytes
LICENSE -rw-r--r-- 13.5 KB
Makefile.pre.in -rw-r--r-- 37.4 KB
README -rw-r--r-- 7.0 KB
RELNOTES -rw-r--r-- 3.6 KB
configure -rwxr-xr-x 651.9 KB
configure.in -rw-r--r-- 99.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.5 KB
runtests.sh -rwxr-xr-x 2.1 KB
setup.py -rw-r--r-- 70.8 KB

README

back to top