[Python-checkins] CVS: python/dist/src/Include descrobject.h,1.1.2.3,1.1.2.4 object.h,2.79.2.2,2.79.2.3

Guido van Rossum gvanrossum@users.sourceforge.net
Sun, 29 Apr 2001 07:53:57 -0700


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

Modified Files:
      Tag: descr-branch
	descrobject.h object.h 
Log Message:
Move PyType_InitDict() to typeobect.c, and enhane it to support (some)
special methods like __getitem__ automatically.
This facility is not yet complete, and I'm thinking about a redesign.

Index: descrobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Attic/descrobject.h,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** descrobject.h	2001/04/27 21:38:38	1.1.2.3
--- descrobject.h	2001/04/29 14:53:55	1.1.2.4
***************
*** 23,27 ****
  					       struct getsetlist *);
  
- extern DL_IMPORT(int) PyType_InitDict(PyTypeObject *);
- 
  extern DL_IMPORT(PyObject *) PyDictProxy_New(PyObject *);
--- 23,25 ----

Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.79.2.2
retrieving revision 2.79.2.3
diff -C2 -r2.79.2.2 -r2.79.2.3
*** object.h	2001/04/27 18:04:50	2.79.2.2
--- object.h	2001/04/29 14:53:55	2.79.2.3
***************
*** 280,283 ****
--- 280,285 ----
  #define PyType_Check(op) ((op)->ob_type == &PyType_Type)
  
+ extern DL_IMPORT(int) PyType_InitDict(PyTypeObject *);
+ 
  /* Generic operations on objects */
  extern DL_IMPORT(int) PyObject_Print(PyObject *, FILE *, int);