[Python-checkins] Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)

Xiang Zhang webhook-mailer at python.org
Tue Jul 28 12:51:44 EDT 2020


https://github.com/python/cpython/commit/34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3
commit: 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3
branch: master
author: Xiang Zhang <angwerzx at 126.com>
committer: GitHub <noreply at github.com>
date: 2020-07-29T00:51:33+08:00
summary:

Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)

files:
M Doc/library/dis.rst

diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index f871ec4f13def..d0307bd8e9f3d 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)



More information about the Python-checkins mailing list