Skip to content

Commit b807f77

Browse files
committed
Use a clearer note for Py_REFCNT().
1 parent ee1f95b commit b807f77

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/c-api/refcounting.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ of Python objects.
3939
The parameter type is no longer :c:expr:`const PyObject*`.
4040
4141
.. versionchanged:: 3.14
42-
The interpreter now uses :term:`borrowed references <borrowed reference>`
43-
where possible when calling C extensions. This means that an object's
44-
reference count may appear as 1, even when it is not solely referenced by
45-
the caller.
42+
A return value of 1 is no longer sufficient to determine that *o* is
43+
solely referenced by the caller.
4644
4745
4846
.. c:function:: void Py_SET_REFCNT(PyObject *o, Py_ssize_t refcnt)

0 commit comments

Comments
 (0)