[Python-checkins] CVS: python/dist/src/Include object.h,2.79.2.20,2.79.2.21
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 02 Jul 2001 10:08:35 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _sre.c,2.57,2.58
- Next message: [Python-checkins] CVS: python/dist/src/Objects descrobject.c,1.1.2.11,1.1.2.12 funcobject.c,2.37.4.5,2.37.4.6 object.c,2.124.4.19,2.124.4.20 typeobject.c,2.16.8.54,2.16.8.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv3345/Include
Modified Files:
Tag: descr-branch
object.h
Log Message:
Change the tp_descr_get slot to take three arguments: (self, obj,
type). The type is useful to create unbound methods, and I think I
have a way to make class methods work that needs this.
Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.79.2.20
retrieving revision 2.79.2.21
diff -C2 -r2.79.2.20 -r2.79.2.21
*** object.h 2001/06/29 15:03:54 2.79.2.20
--- object.h 2001/07/02 17:08:33 2.79.2.21
***************
*** 203,207 ****
typedef PyObject *(*getiterfunc) (PyObject *);
typedef PyObject *(*iternextfunc) (PyObject *);
! typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *);
typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
--- 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 *);
- Previous message: [Python-checkins] CVS: python/dist/src/Modules _sre.c,2.57,2.58
- Next message: [Python-checkins] CVS: python/dist/src/Objects descrobject.c,1.1.2.11,1.1.2.12 funcobject.c,2.37.4.5,2.37.4.6 object.c,2.124.4.19,2.124.4.20 typeobject.c,2.16.8.54,2.16.8.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]