]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH...
authorPeter Bierma <zintensitydev@gmail.com>
Sun, 13 Jul 2025 09:10:37 +0000 (05:10 -0400)
committerGitHub <noreply@github.com>
Sun, 13 Jul 2025 09:10:37 +0000 (05:10 -0400)
Doc/glossary.rst

index 705b0a9279c6d429547f78f0f17c32987e7f98f1..199a917f9f101eac314c077a3393846c66b2312d 100644 (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.