Skip to content

Commit 4742047

Browse files
authored
docs: use consistent .append() in dis.rst (#115434)
The STACK variable is described as like a Python list, so pushing to it should be done with .append() consistently throughout.
1 parent 4ebf8fb commit 4742047

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/dis.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ iterations of the loop.
16061606

16071607
value = STACK.pop()
16081608
result = func(value)
1609-
STACK.push(result)
1609+
STACK.append(result)
16101610

16111611
* ``oparg == 1``: call :func:`str` on *value*
16121612
* ``oparg == 2``: call :func:`repr` on *value*
@@ -1623,7 +1623,7 @@ iterations of the loop.
16231623

16241624
value = STACK.pop()
16251625
result = value.__format__("")
1626-
STACK.push(result)
1626+
STACK.append(result)
16271627

16281628
Used for implementing formatted literal strings (f-strings).
16291629

@@ -1636,7 +1636,7 @@ iterations of the loop.
16361636
spec = STACK.pop()
16371637
value = STACK.pop()
16381638
result = value.__format__(spec)
1639-
STACK.push(result)
1639+
STACK.append(result)
16401640

16411641
Used for implementing formatted literal strings (f-strings).
16421642

@@ -1783,7 +1783,7 @@ iterations of the loop.
17831783
arg2 = STACK.pop()
17841784
arg1 = STACK.pop()
17851785
result = intrinsic2(arg1, arg2)
1786-
STACK.push(result)
1786+
STACK.append(result)
17871787

17881788
The operand determines which intrinsic function is called:
17891789

0 commit comments

Comments
 (0)