]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
PyCObject_FromVoidPtr(): Clarify that the destr function will only be
authorFred Drake <fdrake@acm.org>
Thu, 13 May 1999 18:41:14 +0000 (18:41 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 13 May 1999 18:41:14 +0000 (18:41 +0000)
  called on destruction is non-NULL.

Doc/api/api.tex

index 4cce62bcc85122a96053084c0401bdf6a4d9cc24..a625d14d033425c92d8d2343243dadaf51c3fb08 100644 (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,