From dab44682c2974d504143d69c00f78fa7719f7810 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 13 May 1999 18:41:14 +0000 Subject: PyCObject_FromVoidPtr(): Clarify that the destr function will only be called on destruction is non-NULL. --- Doc/api/api.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/api/api.tex b/Doc/api/api.tex index 4cce62b..a625d14 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, -- cgit v0.12