Skip to content

Commit 3dbe02c

Browse files
gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)
1 parent 9e5cebd commit 3dbe02c

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
@@ -1208,6 +1208,11 @@ Glossary
12081208
:func:`sys.getrefcount` function to return the
12091209
reference count for a particular object.
12101210

1211+
In :term:`CPython`, reference counts are not considered to be stable
1212+
or well-defined values; the number of references to an object, and how
1213+
that number is affected by Python code, may be different between
1214+
versions.
1215+
12111216
regular package
12121217
A traditional :term:`package`, such as a directory containing an
12131218
``__init__.py`` file.

0 commit comments

Comments
 (0)