From a22e8bdfd92cd4f1bc3d60e91df6410c4efde6a0 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 29 Nov 2007 22:35:39 +0000 Subject: Added all PyTypeObjects to the appropriate header files. Before the patch a lot of internal types weren't available in the header files. The patch exposes the new iterators, views and some other types to all C modules. I've also renamed some of the types and tp_names. --- Include/descrobject.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Include/descrobject.h') diff --git a/Include/descrobject.h b/Include/descrobject.h index a45a80132c..badfa5b238 100644 --- a/Include/descrobject.h +++ b/Include/descrobject.h @@ -67,7 +67,12 @@ typedef struct { void *d_wrapped; /* This can be any function pointer */ } PyWrapperDescrObject; +PyAPI_DATA(PyTypeObject) PyClassMethodDescr_Type; +PyAPI_DATA(PyTypeObject) PyGetSetDescr_Type; +PyAPI_DATA(PyTypeObject) PyMemberDescr_Type; +PyAPI_DATA(PyTypeObject) PyMethodDescr_Type; PyAPI_DATA(PyTypeObject) PyWrapperDescr_Type; +PyAPI_DATA(PyTypeObject) PyDictProxy_Type; PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *); PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *); -- cgit v1.2.1