PyCObject_FromVoidPtr(): Clarify that the destr function will only be

called on destruction is non-NULL.
This commit is contained in:
Fred Drake 1999-05-13 18:41:14 +00:00
parent 431f0ce547
commit dab44682c2
1 changed files with 2 additions and 1 deletions

View File

@ -2384,7 +2384,8 @@ used to access C APIs defined in dynamically loaded modules.
\begin{cfuncdesc}{PyObject *}{PyCObject_FromVoidPtr}{void* cobj,
void (*destr)(void *)}
Creates a \ctype{PyCObject} from the \code{void *} \var{cobj}. The
\var{destr} function will be called when the object is reclaimed.
\var{destr} function will be called when the object is reclaimed, unless
it is \NULL.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject *}{PyCObject_FromVoidPtrAndDesc}{void* cobj,