[Python-checkins] CVS: python/dist/src/Include classobject.h,2.37,2.37.4.1
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年7月03日 02:56:54 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv19044/Include
Modified Files:
Tag: descr-branch
classobject.h
Log Message:
Get rid of PyMethod_{Function,Self,Class}. These were effectively
internal APIs, always called after PyMethod_Check(), so it's better to
always use the macros PyMethod_GET_{FUNCTION,SELF,SELF}.
Index: classobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/classobject.h,v
retrieving revision 2.37
retrieving revision 2.37.4.1
diff -C2 -r2.37 -r2.37.4.1
*** classobject.h 2001年03月23日 04:17:58 2.37
--- classobject.h 2001年07月03日 09:56:52 2.37.4.1
***************
*** 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. */
--- 48,51 ----