Skip to content

Commit fac28e4

Browse files
[3.13] gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (GH-136614)
gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (cherry picked from commit 3dbe02c) Co-authored-by: Peter Bierma <[email protected]>
1 parent c438649 commit fac28e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/glossary.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,11 @@ Glossary
11631163
:func:`sys.getrefcount` function to return the
11641164
reference count for a particular object.
11651165

1166+
In :term:`CPython`, reference counts are not considered to be stable
1167+
or well-defined values; the number of references to an object, and how
1168+
that number is affected by Python code, may be different between
1169+
versions.
1170+
11661171
regular package
11671172
A traditional :term:`package`, such as a directory containing an
11681173
``__init__.py`` file.

0 commit comments

Comments
 (0)