File tree 1 file changed +10
-4
lines changed
Filter options
1 file changed +10
-4
lines changed
Original file line number Diff line number Diff line change @@ -109,11 +109,17 @@ objects.
109
109
It is a good idea to use this macro whenever decrementing the reference
110
110
count of an object that might be traversed during garbage collection.
111
111
112
+ .. c :function :: void Py_IncRef (PyObject *o)
113
+
114
+ Increment the reference count for object *o *. A function version of :c:func: `Py_XINCREF `.
115
+ It can be used for runtime dynamic embedding of Python.
116
+
117
+
118
+ .. c :function :: void Py_DecRef (PyObject *o)
119
+
120
+ Decrement the reference count for object *o *. A function version of :c:func: `Py_XDECREF `.
121
+ It can be used for runtime dynamic embedding of Python.
112
122
113
- The following functions are for runtime dynamic embedding of Python:
114
- ``Py_IncRef(PyObject *o) ``, ``Py_DecRef(PyObject *o) ``. They are
115
- simply exported function versions of :c:func: `Py_XINCREF ` and
116
- :c:func: `Py_XDECREF `, respectively.
117
123
118
124
The following functions or macros are only for use within the interpreter core:
119
125
:c:func: `_Py_Dealloc `, :c:func: `_Py_ForgetReference `, :c:func: `_Py_NewReference `,
You can’t perform that action at this time.
0 commit comments