• 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
..
example_nt Loading commit data...
os2emx Loading commit data...
os2vacpp Loading commit data...
WinMain.c Loading commit data...
_winreg.c Loading commit data...
config.c Loading commit data...
dl_nt.c Loading commit data...
dllbase_nt.txt Loading commit data...
frozen_dllmain.c Loading commit data...
getpathp.c Loading commit data...
import_nt.c Loading commit data...
msvcrtmodule.c Loading commit data...
py.ico Loading commit data...
pyc.ico Loading commit data...
pycon.ico Loading commit data...
pyconfig.h Loading commit data...
python.mk Loading commit data...
python_exe.rc Loading commit data...
python_nt.rc Loading commit data...
readme.txt Loading commit data...
testpy.py Loading commit data...
w9xpopen.c Loading commit data...
winsound.c Loading commit data...