diff options
| author | Christian Heimes <christian@cheimes.de> | 2007-11-29 22:35:39 +0000 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2007-11-29 22:35:39 +0000 |
| commit | a22e8bdfd92cd4f1bc3d60e91df6410c4efde6a0 (patch) | |
| tree | 8f865b488f65ff8bab485bafe1cdd8516a65c679 /Include/descrobject.h | |
| parent | 513b2ac76c1f56f5a6e0d07fee57d823819ee873 (diff) | |
| download | cpython-git-a22e8bdfd92cd4f1bc3d60e91df6410c4efde6a0.tar.gz | |
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.
Diffstat (limited to 'Include/descrobject.h')
| -rw-r--r-- | Include/descrobject.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 *); |
