Skip to content

Commit 85dd6bb

Browse files
authored
Improved documentation for BUILD_CONST_KEY_MAP (GH-19454)
1 parent 70c188e commit 85dd6bb

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
@@ -844,9 +844,9 @@ All of the following opcodes use their arguments.
844844

845845
.. opcode:: BUILD_CONST_KEY_MAP (count)
846846

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

851851
.. versionadded:: 3.6
852852

0 commit comments

Comments
 (0)