We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 182d190 commit f951098Copy full SHA for f951098
1 file changed
Doc/extending/reference-counting.rst
@@ -100,8 +100,9 @@ in the C API:
100
In the ``spam_system`` function, ``self`` and ``arg`` are borrowed references
101
(meaning we must not decrement their reference count), but ``result`` is a
102
strong reference. ``result`` is returned, so the strong reference is given to
103
-the caller. This is also called "stealing" a reference (so, in the above
104
-example, the caller steals our strong reference to ``result``).
+the caller.
+The caller is now responsible for making sure :c:macro:`Py_DECREF` is called --
105
+either by calling it, or by delegating this responsibility.
106
107
108
Reference counting patterns
0 commit comments