@@ -2479,34 +2479,40 @@ \subsection{CObjects \label{cObjects}}
24792479\end {ctypedesc }
24802480
24812481\begin {cfuncdesc }{int}{PyCObject_Check}{PyObject *p}
2482- Returns true if its argument is a \ctype {PyCObject}.
2482+ Return true if its argument is a \ctype {PyCObject}.
24832483\end {cfuncdesc }
24842484
24852485\begin {cfuncdesc }{PyObject*}{PyCObject_FromVoidPtr}{void* cobj,
24862486 void (*destr)(void *)}
2487- Creates a \ctype {PyCObject} from the \code {void *}\var {cobj}. The
2487+ Create a \ctype {PyCObject} from the \code {void *}\var {cobj}. The
24882488 \var {destr} function will be called when the object is reclaimed,
24892489 unless it is \NULL .
24902490\end {cfuncdesc }
24912491
24922492\begin {cfuncdesc }{PyObject*}{PyCObject_FromVoidPtrAndDesc}{void* cobj,
24932493 void* desc, void (*destr)(void *, void *)}
2494- Creates a \ctype {PyCObject} from the \ctype {void *}\var {cobj}. The
2494+ Create a \ctype {PyCObject} from the \ctype {void *}\var {cobj}. The
24952495 \var {destr} function will be called when the object is reclaimed.
24962496 The \var {desc} argument can be used to pass extra callback data for
24972497 the destructor function.
24982498\end {cfuncdesc }
24992499
25002500\begin {cfuncdesc }{void*}{PyCObject_AsVoidPtr}{PyObject* self}
2501- Returns the object \ctype {void *} that the \ctype {PyCObject}
2501+ Return the object \ctype {void *} that the \ctype {PyCObject}
25022502 \var {self} was created with.
25032503\end {cfuncdesc }
25042504
25052505\begin {cfuncdesc }{void*}{PyCObject_GetDesc}{PyObject* self}
2506- Returns the description \ctype {void *} that the \ctype {PyCObject}
2506+ Return the description \ctype {void *} that the \ctype {PyCObject}
25072507 \var {self} was created with.
25082508\end {cfuncdesc }
25092509
2510+ \begin {cfuncdesc }{int}{PyCObject_SetVoidPtr}{PyObject* self, void* cobj}
2511+ Set the void pointer inside \var {self} to \var {cobj}.
2512+ The \ctype {PyCObject} must not have an associated destructor.
2513+ Return true on success, false on failure.
2514+ \end {cfuncdesc }
2515+
25102516
25112517\subsection {Cell Objects \label {cell-objects } }
25122518
0 commit comments