[Python-checkins] python/dist/src/Include descrobject.h,2.11,2.12

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Mon, 09 Dec 2002 14:56:15 -0800


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

Modified Files:
	descrobject.h 
Log Message:
SF 548651:  Fix the METH_CLASS implementation.
Most of these patches are from Thomas Heller, with long lines folded
by Tim.  The change to test_descr.py is from Guido.  See the bug report.

Not a bugfix candidate -- METH_CLASS is new in 2.3.


Index: descrobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/descrobject.h,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -d -r2.11 -r2.12
*** descrobject.h	19 Aug 2002 18:45:37 -0000	2.11
--- descrobject.h	9 Dec 2002 22:56:12 -0000	2.12
***************
*** 71,74 ****
--- 71,75 ----
  
  PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *);
+ PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *);
  PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *,
  					       struct PyMemberDef *);