• 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
..
Build Loading commit data...
Compat Loading commit data...
Contrib Loading commit data...
Demo Loading commit data...
Distributions Loading commit data...
IDE scripts Loading commit data...
Include Loading commit data...
Lib Loading commit data...
MPW Loading commit data...
Modules Loading commit data...
OSX Loading commit data...
OSXResources Loading commit data...
Python Loading commit data...
Resources Loading commit data...
Tools Loading commit data...
Unsupported Loading commit data...
Wastemods Loading commit data...
mwerks Loading commit data...
scripts Loading commit data...
tclmods Loading commit data...
HISTORY Loading commit data...
ReadMe Loading commit data...
ReadMe-dev Loading commit data...
ReadMe-src Loading commit data...
Relnotes Loading commit data...
_checkversion.py Loading commit data...