summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2004-04-22 17:23:49 (GMT)
committerThomas Heller <theller@ctypes.org>2004-04-22 17:23:49 (GMT)
commit1328b52c6ff3ae128b12be49b430ce859bbd8876 (patch)
treed93fb72929188318596f8f63614721c0701e53a9 /Doc
parent1a9d32b8d4611dd7c95d1dba1b5d1940cbbe3610 (diff)
downloadcpython-1328b52c6ff3ae128b12be49b430ce859bbd8876.zip
cpython-1328b52c6ff3ae128b12be49b430ce859bbd8876.tar.gz
cpython-1328b52c6ff3ae128b12be49b430ce859bbd8876.tar.bz2
Two new public API functions, Py_IncRef and Py_DecRef. Useful for
dynamic embedders of Python.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/refcounting.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/api/refcounting.tex b/Doc/api/refcounting.tex
index 03530f0..42b9e6a 100644
--- a/Doc/api/refcounting.tex
+++ b/Doc/api/refcounting.tex
@@ -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