summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2005-03-24 07:45:53 (GMT)
committerThomas Heller <theller@ctypes.org>2005-03-24 07:45:53 (GMT)
commit33ceda85d02df2d21820645d5c2a62117faa2759 (patch)
tree674229d72b90df05e417c2af33c50b2b9650f0f8 /Doc/api
parentc6699b7dc46d08ff08f4548ae80c98114b6be68b (diff)
downloadcpython-33ceda85d02df2d21820645d5c2a62117faa2759.zip
cpython-33ceda85d02df2d21820645d5c2a62117faa2759.tar.gz
cpython-33ceda85d02df2d21820645d5c2a62117faa2759.tar.bz2
Function signatures for tp_descr_get and tp_descr_set.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/newtypes.tex16
1 files changed, 15 insertions, 1 deletions
diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex
index b8b2f7c..f78066c 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}