Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
https://github.com/python/cpython/commit/34cd3e9f6a87f9c50edac893b0d5ae46c4e... commit: 34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3 branch: master author: Xiang Zhang <angwerzx@126.com> committer: GitHub <noreply@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)
participants (1)
-
Xiang Zhang