diff options
author | Guido van Rossum <guido@python.org> | 2002-06-14 20:41:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-14 20:41:17 (GMT) |
commit | bea18ccde6bc12e061c21bb6b944379d8b123845 (patch) | |
tree | d5366d2bba31bde0cf6d05e1b55cde64cf3d3864 /Mac/MPW | |
parent | 57454e57f83b407dd2653cbfcead7c9801beeff0 (diff) | |
download | cpython-bea18ccde6bc12e061c21bb6b944379d8b123845.zip cpython-bea18ccde6bc12e061c21bb6b944379d8b123845.tar.gz cpython-bea18ccde6bc12e061c21bb6b944379d8b123845.tar.bz2 |
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]
Diffstat (limited to 'Mac/MPW')
-rw-r--r-- | Mac/MPW/Makefile | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Mac/MPW/Makefile b/Mac/MPW/Makefile index 3c06014..817198c 100644 --- a/Mac/MPW/Makefile +++ b/Mac/MPW/Makefile @@ -77,7 +77,6 @@ ALL = ¶ "{Objs}"moduleobject.c.o ¶ "{Objs}"myreadline.c.o ¶ "{Objs}"mystrtoul.c.o ¶ - "{Objs}"newmodule.c.o ¶ "{Objs}"nfullpath.c.o ¶ "{Objs}"node.c.o ¶ "{Objs}"object.c.o ¶ @@ -473,9 +472,6 @@ xxmodule.slb Ä PythonLib.slb "{Objs}"xxmodule.c.o "{Objs}"mathmodule.c.o Ä "{Top}"Modules:mathmodule.c {CC} "{Top}"Modules:mathmodule.c -o "{Objs}"mathmodule.c.o -s mathmodule.c {CFlags} -"{Objs}"newmodule.c.o Ä "{Top}"Modules:newmodule.c - {CC} "{Top}"Modules:newmodule.c -o "{Objs}"newmodule.c.o -s newmodule.c {CFlags} - "{Objs}"parsermodule.c.o Ä "{Top}"Modules:parsermodule.c {CC} "{Top}"Modules:parsermodule.c -o "{Objs}"parsermodule.c.o -s parsermodule.c {CFlags} |