mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Two new public API functions, Py_IncRef and Py_DecRef. Useful for
dynamic embedders of Python.
This commit is contained in:
parent
1a9d32b8d4
commit
1328b52c6f
4 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue