summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2020-07-13 23:49:43 +0800
committerGitHub <noreply@github.com>2020-07-13 23:49:43 +0800
commit0afa52d2166ae5fc77291364c5f249ebe04f1bd2 (patch)
tree322cc3fe266697013b56465f878376a8a5cfe0ad
parent4f309abf55f0e6f8950ac13d6ec83c22b8d47bf8 (diff)
downloadcpython-git-zhangyangyu-patch-1.tar.gz
Fix `List_Add` description, list is extracted at TOS1[-i]zhangyangyu-patch-1
-rw-r--r--Doc/library/dis.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index f871ec4f13..d0307bd8e9 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -640,7 +640,7 @@ the original TOS1.
.. opcode:: LIST_APPEND (i)
- Calls ``list.append(TOS[-i], TOS)``. Used to implement list comprehensions.
+ Calls ``list.append(TOS1[-i], TOS)``. Used to implement list comprehensions.
.. opcode:: MAP_ADD (i)