[Python-checkins] CVS: python/dist/src/Include classobject.h,2.38,2.39

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 05 Sep 2001 15:52:18 -0700


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

Modified Files:
	classobject.h 
Log Message:
Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back.
While not even documented, they were clearly part of the C API,
there's no great difficulty to support them, and it has the cool
effect of not requiring any changes to ExtensionClass.c.


Index: classobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/classobject.h,v
retrieving revision 2.38
retrieving revision 2.39
diff -C2 -d -r2.38 -r2.39
*** classobject.h	2001/08/02 04:15:00	2.38
--- classobject.h	2001/09/05 22:52:16	2.39
***************
*** 48,51 ****
--- 48,55 ----
  extern DL_IMPORT(PyObject *) PyMethod_New(PyObject *, PyObject *, PyObject *);
  
+ extern DL_IMPORT(PyObject *) PyMethod_Function(PyObject *);
+ extern DL_IMPORT(PyObject *) PyMethod_Self(PyObject *);
+ extern DL_IMPORT(PyObject *) PyMethod_Class(PyObject *);
+ 
  /* Macros for direct access to these values. Type checks are *not*
     done, so use with care. */