Skip to content

Commit 49b0ea8

Browse files
committed
Add some documentation notes.
1 parent b545f24 commit 49b0ea8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Doc/library/sys.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,11 @@ always available.
855855
reflect the actual number of references. Consequently, do not rely
856856
on the returned value to be accurate, other than a value of 0 or 1.
857857

858+
.. impl-detail::
859+
860+
:term:`immortal` objects with a large reference count can be identified
861+
with :func:`_is_immortal`.
862+
858863
.. versionchanged:: 3.12
859864
Immortal objects have very large refcounts that do not match
860865
the actual number of references to the object.

Doc/whatsnew/3.14.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ sys
611611
which only exists in specialized builds of Python, may now return objects
612612
from other interpreters than the one it's called in.
613613

614+
* Add :func:`sys._is_immortal` for determining if an object is :term:`immortal`.
615+
(Contributed by Peter Bierma in :gh:`128509`.)
616+
614617
sys.monitoring
615618
--------------
616619

0 commit comments

Comments
 (0)