antoine.pitrou
2008-08-26 22:44:20 UTC
Author: antoine.pitrou
Date: Wed Aug 27 00:44:20 2008
New Revision: 66044
Log:
Blocked revisions 66043 via svnmerge
........
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.
........
Modified:
python/branches/py3k/ (props changed)
Date: Wed Aug 27 00:44:20 2008
New Revision: 66044
Log:
Blocked revisions 66043 via svnmerge
........
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.
........
Modified:
python/branches/py3k/ (props changed)