]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19495)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Apr 2020 03:01:53 +0000 (20:01 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 03:01:53 +0000 (20:01 -0700)
(cherry picked from commit 85dd6bb1f61f7edcd6ac0b640a98644531690a0e)

Co-authored-by: laike9m <laike9m@users.noreply.github.com>
Automerge-Triggered-By: @zhangyangyu
Doc/library/dis.rst

index 34ae1a3a6d83d949267afe1abd53b0cc6522a5e4..5b34e68cb027c00e3ee40d90bbeeddb943fb8cd8 100644 (file)
@@ -894,9 +894,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