• Guido van Rossum's avatar
    SF patch 568629 by Oren Tirosh: types made callable. · bea18ccd
    Guido van Rossum yazdı
    These built-in functions are replaced by their (now callable) type:
    
        slice()
        buffer()
    
    and these types can also be called (but have no built-in named
    function named after them)
    
        classobj (type name used to be "class")
        code
        function
        instance
        instancemethod (type name used to be "instance method")
    
    The module "new" has been replaced with a small backward compatibility
    placeholder in Python.
    
    A large portion of the patch simply removes the new module from
    various platform-specific build recipes.  The following binary Mac
    project files still have references to it:
    
        Mac/Build/PythonCore.mcp
        Mac/Build/PythonStandSmall.mcp
        Mac/Build/PythonStandalone.mcp
    
    [I've tweaked the code layout and the doc strings here and there, and
    added a comment to types.py about StringTypes vs. basestring.  --Guido]
    bea18ccd
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...