Staging
v0.5.1
https://github.com/python/cpython
Revision 960b9b7a2f6e9b4f0e6b692d604c53b3fd2f5d1c authored by Jeffrey Yasskin on 28 February 2008, 04:45:36 UTC, committed by Jeffrey Yasskin on 28 February 2008, 04:45:36 UTC
which forbids constructing types that have it set. The effect is to speed

  ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()'

up from 2.5us to 0.201us. This fixes issue 1762.
1 parent c105289
History
Tip revision: 960b9b7a2f6e9b4f0e6b692d604c53b3fd2f5d1c authored by Jeffrey Yasskin on 28 February 2008, 04:45:36 UTC
Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT,
Tip revision: 960b9b7
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.hgtags -rw-r--r-- 3.2 KB
LICENSE -rw-r--r-- 13.4 KB
Makefile.pre.in -rw-r--r-- 36.1 KB
README -rw-r--r-- 54.2 KB
configure -rwxr-xr-x 642.5 KB
configure.in -rw-r--r-- 98.0 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.1 KB
setup.py -rw-r--r-- 71.8 KB

README

back to top