summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-10-19 18:30:01 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-10-19 18:30:01 (GMT)
commit01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49 (patch)
tree5d3a030a1249c41d7b2f347139737156b341a2a5 /Doc
parent95cf84a4f3bd6b679e5c632512d02008b5ff8f46 (diff)
downloadcpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.zip
cpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.tar.gz
cpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.tar.bz2
Make CObjects mutable. Fixes #477441.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/concrete.tex16
1 files changed, 11 insertions, 5 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index cc552b4..7e784c7 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -2479,34 +2479,40 @@ information on using these objects.
\end{ctypedesc}
\begin{cfuncdesc}{int}{PyCObject_Check}{PyObject *p}
- Returns true if its argument is a \ctype{PyCObject}.
+ Return true if its argument is a \ctype{PyCObject}.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyCObject_FromVoidPtr}{void* cobj,
void (*destr)(void *)}
- Creates a \ctype{PyCObject} from the \code{void *}\var{cobj}. The
+ Create a \ctype{PyCObject} from the \code{void *}\var{cobj}. The
\var{destr} function will be called when the object is reclaimed,
unless it is \NULL.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyCObject_FromVoidPtrAndDesc}{void* cobj,
void* desc, void (*destr)(void *, void *)}
- Creates a \ctype{PyCObject} from the \ctype{void *}\var{cobj}. The
+ Create a \ctype{PyCObject} from the \ctype{void *}\var{cobj}. The
\var{destr} function will be called when the object is reclaimed.
The \var{desc} argument can be used to pass extra callback data for
the destructor function.
\end{cfuncdesc}
\begin{cfuncdesc}{void*}{PyCObject_AsVoidPtr}{PyObject* self}
- Returns the object \ctype{void *} that the \ctype{PyCObject}
+ Return the object \ctype{void *} that the \ctype{PyCObject}
\var{self} was created with.
\end{cfuncdesc}
\begin{cfuncdesc}{void*}{PyCObject_GetDesc}{PyObject* self}
- Returns the description \ctype{void *} that the \ctype{PyCObject}
+ Return the description \ctype{void *} that the \ctype{PyCObject}
\var{self} was created with.
\end{cfuncdesc}
+\begin{cfuncdesc}{int}{PyCObject_SetVoidPtr}{PyObject* self, void* cobj}
+ Set the void pointer inside \var{self} to \var{cobj}.
+ The \ctype{PyCObject} must not have an associated destructor.
+ Return true on success, false on failure.
+\end{cfuncdesc}
+
\subsection{Cell Objects \label{cell-objects}}