[Python-checkins] CVS: python/dist/src/Include object.h,2.79.2.20,2.79.2.21

Guido van Rossum gvanrossum@users.sourceforge.net
2001年7月02日 10:08:35 -0700


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 *);

AltStyle によって変換されたページ (->オリジナル) /