@@ -17,7 +17,7 @@ of Python objects.
17
17
18
18
Note that the returned value may not actually reflect how many
19
19
references to the object are actually held. For example, some
20
- objects are " immortal" and have a very high refcount that does not
20
+ objects are :term: ` immortal ` and have a very high refcount that does not
21
21
reflect the actual number of references. Consequently, do not rely
22
22
on the returned value to be accurate, other than a value of 0 or 1.
23
23
@@ -34,9 +34,7 @@ of Python objects.
34
34
35
35
Set the object *o * reference counter to *refcnt *.
36
36
37
- Note that this function has no effect on
38
- `immortal <https://peps.python.org/pep-0683/ >`_
39
- objects.
37
+ This function has no effect on :term: `immortal ` objects.
40
38
41
39
.. versionadded :: 3.9
42
40
@@ -49,6 +47,8 @@ of Python objects.
49
47
Indicate taking a new :term: `strong reference ` to object *o *,
50
48
indicating it is in use and should not be destroyed.
51
49
50
+ This function has no effect on :term: `immortal ` objects.
51
+
52
52
This function is usually used to convert a :term: `borrowed reference ` to a
53
53
:term: `strong reference ` in-place. The :c:func: `Py_NewRef ` function can be
54
54
used to create a new :term: `strong reference `.
@@ -113,6 +113,8 @@ of Python objects.
113
113
Release a :term: `strong reference ` to object *o *, indicating the
114
114
reference is no longer used.
115
115
116
+ This function has no effect on :term: `immortal ` objects.
117
+
116
118
Once the last :term: `strong reference ` is released
117
119
(i.e. the object's reference count reaches 0),
118
120
the object's type's deallocation
0 commit comments