mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
PyCObject_FromVoidPtr(): Clarify that the destr function will only be
called on destruction is non-NULL.
This commit is contained in:
parent
431f0ce547
commit
dab44682c2
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue