]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revise `pycore_stackref.h` comments. (#130601)
authorNeil Schemenauer <nas-github@arctrix.com>
Thu, 27 Mar 2025 08:30:25 +0000 (01:30 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Mar 2025 08:30:25 +0000 (14:00 +0530)
Include/internal/pycore_stackref.h

index 80e8f4f365f1da5cfd2512567671716857bf10c2..e2e32ed4122838be9915a8771d86f5e7f413b993 100644 (file)
@@ -35,13 +35,13 @@ extern "C" {
   unboxed integers harder in the future.
 
   Steal means that ownership is transferred to something else. The total
-  number of references to the object stays the same.
+  number of references to the object stays the same.  The old reference is no
+  longer valid.
 
   New creates a new reference from the old reference. The old reference
   is still valid.
 
-  With these 3 API, a strict stack discipline must be maintained. All
-  _PyStackRef must be operated on by the new reference operations:
+  All _PyStackRef must be operated on by the new reference operations:
 
     1. DUP
     2. CLOSE