gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)

This commit is contained in:
Peter Bierma 2025-07-13 05:10:37 -04:00 committed by GitHub
parent 9e5cebd56d
commit 3dbe02ccd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1208,6 +1208,11 @@ Glossary
:func:`sys.getrefcount` function to return the
reference count for a particular object.
In :term:`CPython`, reference counts are not considered to be stable
or well-defined values; the number of references to an object, and how
that number is affected by Python code, may be different between
versions.
regular package
A traditional :term:`package`, such as a directory containing an
``__init__.py`` file.