https://github.com/python/cpython/commit/316938bddf1d321234debecc4561d8f5cd6403a0
commit: 316938bddf1d321234debecc4561d8f5cd6403a0
branch: main
author: Neil Schemenauer <nas-git...@arctrix.com>
committer: kumaraditya303 <kumaradi...@python.org>
date: 2025-03-27T14:00:25+05:30
summary:

Revise `pycore_stackref.h` comments. (#130601)

files:
M Include/internal/pycore_stackref.h

diff --git a/Include/internal/pycore_stackref.h 
b/Include/internal/pycore_stackref.h
index 80e8f4f365f1da..e2e32ed4122838 100644
--- a/Include/internal/pycore_stackref.h
+++ b/Include/internal/pycore_stackref.h
@@ -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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to