From: Thomas Heller Date: Thu, 24 Mar 2005 07:45:53 +0000 (+0000) Subject: Function signatures for tp_descr_get and tp_descr_set. X-Git-Tag: v2.5a0~1882 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33ceda85d02df2d21820645d5c2a62117faa2759;p=python Function signatures for tp_descr_get and tp_descr_set. --- diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex index b8b2f7c800..f78066c392 100644 --- a/Doc/api/newtypes.tex +++ b/Doc/api/newtypes.tex @@ -1106,6 +1106,13 @@ typedef struct PyGetSetDef { \begin{cmemberdesc}{PyTypeObject}{descrgetfunc}{tp_descr_get} An optional pointer to a "descriptor get" function. + + The function signature is + +\begin{verbatim} +PyObject * tp_descr_get(PyObject *self, PyObject *obj, PyObject *type); +\end{verbatim} + XXX blah, blah. This field is inherited by subtypes. @@ -1114,9 +1121,16 @@ typedef struct PyGetSetDef { \begin{cmemberdesc}{PyTypeObject}{descrsetfunc}{tp_descr_set} An optional pointer to a "descriptor set" function. - XXX blah, blah. + The function signature is + +\begin{verbatim} +int tp_descr_set(PyObject *self, PyObject *obj, PyObject *value); +\end{verbatim} This field is inherited by subtypes. + + XXX blah, blah. + \end{cmemberdesc} \begin{cmemberdesc}{PyTypeObject}{long}{tp_dictoffset}