Skip to content

Commit 0a9ec9f

Browse files
[3.7] Improved documentation for BUILD_CONST_KEY_MAP (GH-19454) (GH-19496)
(cherry picked from commit 85dd6bb) Co-authored-by: laike9m <[email protected]> Automerge-Triggered-By: @zhangyangyu
1 parent 096e41a commit 0a9ec9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/dis.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,9 @@ All of the following opcodes use their arguments.
835835

836836
.. opcode:: BUILD_CONST_KEY_MAP (count)
837837

838-
The version of :opcode:`BUILD_MAP` specialized for constant keys. *count*
839-
values are consumed from the stack. The top element on the stack contains
840-
a tuple of keys.
838+
The version of :opcode:`BUILD_MAP` specialized for constant keys. Pops the
839+
top element on the stack which contains a tuple of keys, then starting from
840+
``TOS1``, pops *count* values to form values in the built dictionary.
841841

842842
.. versionadded:: 3.6
843843

0 commit comments

Comments
 (0)