]> granicus.if.org Git - python/commit
SF patch 568629 by Oren Tirosh: types made callable.
authorGuido van Rossum <guido@python.org>
Fri, 14 Jun 2002 20:41:17 +0000 (20:41 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Jun 2002 20:41:17 +0000 (20:41 +0000)
commitbea18ccde6bc12e061c21bb6b944379d8b123845
treed5366d2bba31bde0cf6d05e1b55cde64cf3d3864
parent57454e57f83b407dd2653cbfcead7c9801beeff0
SF patch 568629 by Oren Tirosh: types made callable.

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]
17 files changed:
Lib/types.py
Mac/Distributions/dev.include
Mac/MPW/Makefile
Misc/BeOS-setup.py
Modules/Setup.dist
Objects/bufferobject.c
Objects/classobject.c
Objects/descrobject.c
Objects/funcobject.c
Objects/sliceobject.c
PC/os2vacpp/makefile
PC/os2vacpp/makefile.omk
PCbuild/pythoncore.dsp
Python/bltinmodule.c
Python/compile.c
Python/dynload_aix.c
RISCOS/Makefile