]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 28 Jul 2020 16:59:18 +0000 (09:59 -0700)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 16:59:18 +0000 (09:59 -0700)
(cherry picked from commit 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3)

Co-authored-by: Xiang Zhang <angwerzx@126.com>
Doc/library/dis.rst

index 5b34e68cb027c00e3ee40d90bbeeddb943fb8cd8..015be2029502a5e580e00983687f326f4b613fc3 100644 (file)
@@ -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)