Two new public API functions, Py_IncRef and Py_DecRef. Useful for

dynamic embedders of Python.
This commit is contained in:
Thomas Heller 2004-04-22 17:23:49 +00:00
parent 1a9d32b8d4
commit 1328b52c6f
4 changed files with 28 additions and 0 deletions

View file

@ -42,6 +42,11 @@ of Python objects.
applies.
\end{cfuncdesc}
The following functions are for runtime dynamic embedding of Python:
\cfunction{Py_IncRef(PyObject *o)}, \cfunction{Py_DecRef(PyObject *o)}.
They are simply exported function versions of \cfunction{Py_XINCREF()} and
\cfunction{Py_XDECREF()}, respectively.
The following functions or macros are only for use within the
interpreter core: \cfunction{_Py_Dealloc()},
\cfunction{_Py_ForgetReference()}, \cfunction{_Py_NewReference()}, as