[Python-checkins] python/dist/src/Modules Setup.dist,1.27,1.28

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 14 Jun 2002 13:41:46 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18223/Modules

Modified Files:
	Setup.dist 
Log Message:
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]


Index: Setup.dist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.dist,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** Setup.dist	19 Apr 2002 09:47:23 -0000	1.27
--- Setup.dist	14 Jun 2002 20:41:14 -0000	1.28
***************
*** 111,115 ****
  posix posixmodule.c		# posix (UNIX) system calls
  _sre _sre.c			# Fredrik Lundh's new regular expressions
- new newmodule.c			# Tommy Burnette's 'new' module
  
  # The rest of the modules listed in this file are all commented out by
--- 111,114 ----