Skip to content

Commit 316938b

Browse files
authored
Revise pycore_stackref.h comments. (python#130601)
1 parent c824d8e commit 316938b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/internal/pycore_stackref.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ extern "C" {
3535
unboxed integers harder in the future.
3636
3737
Steal means that ownership is transferred to something else. The total
38-
number of references to the object stays the same.
38+
number of references to the object stays the same. The old reference is no
39+
longer valid.
3940
4041
New creates a new reference from the old reference. The old reference
4142
is still valid.
4243
43-
With these 3 API, a strict stack discipline must be maintained. All
44-
_PyStackRef must be operated on by the new reference operations:
44+
All _PyStackRef must be operated on by the new reference operations:
4545
4646
1. DUP
4747
2. CLOSE

0 commit comments

Comments
 (0)