]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
authorXiang Zhang <angwerzx@126.com>
Tue, 28 Jul 2020 16:51:33 +0000 (00:51 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 16:51:33 +0000 (00:51 +0800)
Doc/library/dis.rst

index f871ec4f13def8b15f2a2f318101339a2eabc78a..d0307bd8e9f3d0819708575698ae6869e57346eb 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)