From 316938bddf1d321234debecc4561d8f5cd6403a0 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Thu, 27 Mar 2025 01:30:25 -0700 Subject: Revise `pycore_stackref.h` comments. (#130601) --- Include/internal/pycore_stackref.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Include/internal/pycore_stackref.h b/Include/internal/pycore_stackref.h index 80e8f4f..e2e32ed 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 -- cgit v0.12