Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67020a3

Browse files
Fix List_Append description, list is extracted at TOS1[-i] (GH-21465)
(cherry picked from commit 34cd3e9) Co-authored-by: Xiang Zhang <[email protected]>
1 parent 95cc37f commit 67020a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/dis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ the original TOS1.
640640

641641
.. opcode:: LIST_APPEND (i)
642642

643-
Calls ``list.append(TOS[-i], TOS)``. Used to implement list comprehensions.
643+
Calls ``list.append(TOS1[-i], TOS)``. Used to implement list comprehensions.
644644

645645

646646
.. opcode:: MAP_ADD (i)

0 commit comments

Comments
 (0)