[Python-checkins] python/dist/src/PC/os2vacpp makefile,1.6,1.7 makefile.omk,1.3,1.4

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


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

Modified Files:
	makefile makefile.omk 
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: makefile
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2vacpp/makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** makefile	4 Dec 2001 03:18:47 -0000	1.6
--- makefile	14 Jun 2002 20:41:15 -0000	1.7
***************
*** 183,187 ****
                    $(PATHOBJ)\MD5c.obj          \
                    $(PATHOBJ)\MD5Module.obj     \
-                   $(PATHOBJ)\NewModule.obj     \
                    $(PATHOBJ)\Operator.obj      \
                    $(PATHOBJ)\PCREModule.obj    \
--- 183,186 ----
***************
*** 806,823 ****
  	 $(PY_INCLUDE)\sliceobject.h $(PY_INCLUDE)\stringobject.h \
  	 $(PY_INCLUDE)\sysmodule.h $(PY_INCLUDE)\traceback.h $(PY_INCLUDE)\tupleobject.h
- 
- newmodule.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h $(PY_INCLUDE)\classobject.h \
- 	 $(PY_INCLUDE)\cobject.h $(PY_INCLUDE)\compile.h $(PY_INCLUDE)\complexobject.h \
- 	 pyconfig.h $(PY_INCLUDE)\dictobject.h $(PY_INCLUDE)\fileobject.h \
- 	 $(PY_INCLUDE)\floatobject.h $(PY_INCLUDE)\funcobject.h $(PY_INCLUDE)\import.h \
- 	 $(PY_INCLUDE)\intobject.h $(PY_INCLUDE)\intrcheck.h $(PY_INCLUDE)\listobject.h \
- 	 $(PY_INCLUDE)\longobject.h $(PY_INCLUDE)\methodobject.h \
- 	 $(PY_INCLUDE)\modsupport.h $(PY_INCLUDE)\moduleobject.h $(PY_INCLUDE)\mymalloc.h \
- 	 $(PY_INCLUDE)\myproto.h $(PY_INCLUDE)\object.h $(PY_INCLUDE)\objimpl.h \
- 	 $(PY_INCLUDE)\pydebug.h $(PY_INCLUDE)\pyerrors.h $(PY_INCLUDE)\pyfpe.h \
- 	 $(PY_INCLUDE)\pystate.h $(PY_INCLUDE)\python.h $(PY_INCLUDE)\pythonrun.h \
- 	 $(PY_INCLUDE)\rangeobject.h $(PY_INCLUDE)\sliceobject.h \
- 	 $(PY_INCLUDE)\stringobject.h $(PY_INCLUDE)\sysmodule.h $(PY_INCLUDE)\traceback.h \
- 	 $(PY_INCLUDE)\tupleobject.h
  
  nismodule.obj: $(PY_INCLUDE)\abstract.h $(OS2TCPIP)\Include\sys\time.h $(PY_INCLUDE)\ceval.h \
--- 805,808 ----

Index: makefile.omk
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2vacpp/makefile.omk,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** makefile.omk	4 Dec 2001 03:18:48 -0000	1.3
--- makefile.omk	14 Jun 2002 20:41:16 -0000	1.4
***************
*** 153,157 ****
                    MD5c.obj          \
                    MD5Module.obj     \
-                   NewModule.obj     \
                    Operator.obj      \
                    PosixModule.obj   \
--- 153,156 ----
***************
*** 619,630 ****
  	 pyerrors.h pyfpe.h pystate.h python.h pythonrun.h rangeobject.h \
  	 sliceobject.h stringobject.h sysmodule.h traceback.h tupleobject.h
- 
- newmodule.obj: abstract.h ceval.h classobject.h cobject.h compile.h \
- 	 complexobject.h pyconfig.h dictobject.h fileobject.h floatobject.h \
- 	 funcobject.h import.h intobject.h intrcheck.h listobject.h \
- 	 longobject.h methodobject.h modsupport.h moduleobject.h mymalloc.h \
- 	 myproto.h object.h objimpl.h pydebug.h pyerrors.h pyfpe.h \
- 	 pystate.h python.h pythonrun.h rangeobject.h sliceobject.h \
- 	 stringobject.h sysmodule.h traceback.h tupleobject.h
  
  nismodule.obj: abstract.h c:\mptn\include\sys\time.h ceval.h classobject.h \
--- 618,621 ----