[Python-checkins] CVS: python/dist/src/Include object.h,2.79.2.22,2.79.2.23
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 02 Jul 2001 17:48:16 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Objects object.c,2.124.4.20,2.124.4.21 typeobject.c,2.16.8.56,2.16.8.57
- Next message: [Python-checkins] CVS: python/dist/src/Objects funcobject.c,2.37.4.7,2.37.4.8 object.c,2.124.4.21,2.124.4.22 typeobject.c,2.16.8.57,2.16.8.58
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv16653/Include
Modified Files:
Tag: descr-branch
object.h
Log Message:
Change the descrgetfunc signature: the thir argument is now an
arbitrary object. This is needed so that classmethod() can also be
used for classic classes.
This is *almost* just a metter of changing casts that don't cause
different code to be generated; the exception is wrap_descr_get which
also removes a typecheck from the PyArg_ParseTuple() argument list.
Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.79.2.22
retrieving revision 2.79.2.23
diff -C2 -r2.79.2.22 -r2.79.2.23
*** object.h 2001/07/03 00:37:47 2.79.2.22
--- object.h 2001/07/03 00:48:14 2.79.2.23
***************
*** 203,208 ****
typedef PyObject *(*getiterfunc) (PyObject *);
typedef PyObject *(*iternextfunc) (PyObject *);
! typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *,
! struct _typeobject *);
typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
--- 203,207 ----
typedef PyObject *(*getiterfunc) (PyObject *);
typedef PyObject *(*iternextfunc) (PyObject *);
! typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
- Previous message: [Python-checkins] CVS: python/dist/src/Objects object.c,2.124.4.20,2.124.4.21 typeobject.c,2.16.8.56,2.16.8.57
- Next message: [Python-checkins] CVS: python/dist/src/Objects funcobject.c,2.37.4.7,2.37.4.8 object.c,2.124.4.21,2.124.4.22 typeobject.c,2.16.8.57,2.16.8.58
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]