]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454)
authorlaike9m <laike9m@users.noreply.github.com>
Mon, 13 Apr 2020 02:55:45 +0000 (19:55 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 02:55:45 +0000 (10:55 +0800)
Doc/library/dis.rst

index 96574a098696cadda7052eb5d578cfe7edb0fd24..f871ec4f13def8b15f2a2f318101339a2eabc78a 100644 (file)
@@ -844,9 +844,9 @@ All of the following opcodes use their arguments.
 
 .. opcode:: BUILD_CONST_KEY_MAP (count)
 
-   The version of :opcode:`BUILD_MAP` specialized for constant keys.  *count*
-   values are consumed from the stack.  The top element on the stack contains
-   a tuple of keys.
+   The version of :opcode:`BUILD_MAP` specialized for constant keys. Pops the
+   top element on the stack which contains a tuple of keys, then starting from
+   ``TOS1``, pops *count* values to form values in the built dictionary.
 
    .. versionadded:: 3.6