From: Fred Drake Date: Thu, 13 May 1999 18:41:14 +0000 (+0000) Subject: PyCObject_FromVoidPtr(): Clarify that the destr function will only be X-Git-Tag: v1.6a1~1355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dab44682c2974d504143d69c00f78fa7719f7810;p=thirdparty%2FPython%2Fcpython.git PyCObject_FromVoidPtr(): Clarify that the destr function will only be called on destruction is non-NULL. --- diff --git a/Doc/api/api.tex b/Doc/api/api.tex index 4cce62bcc851..a625d14d0334 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -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,