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

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 06 Jun 2001 07:41:47 -0700


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

Modified Files:
      Tag: descr-branch
	object.h 
Log Message:
Add three new slots: tp_bases, tp_mro (method resolution), and
tp_introduced (introduced methods, as opposed to supported methods,
which are in __dict__).


Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.79.2.11
retrieving revision 2.79.2.12
diff -C2 -r2.79.2.11 -r2.79.2.12
*** object.h	2001/06/06 14:34:57	2.79.2.11
--- object.h	2001/06/06 14:41:45	2.79.2.12
***************
*** 260,264 ****
  	iternextfunc tp_iternext;
  
! 	/* Attribute descriptor stuff */
  	struct PyMethodDef *tp_methods;
  	struct memberlist *tp_members;
--- 260,264 ----
  	iternextfunc tp_iternext;
  
! 	/* Attribute descriptor and subclassing stuff */
  	struct PyMethodDef *tp_methods;
  	struct memberlist *tp_members;
***************
*** 272,275 ****
--- 272,278 ----
  	allocfunc tp_alloc;
  	allocfunc tp_new;
+ 	PyObject *tp_bases;
+ 	PyObject *tp_mro; /* method resolution order */
+ 	PyObject *tp_introduced;
  
  #ifdef COUNT_ALLOCS