Skip to content

Commit ee691b0

Browse files
[3.8] Improved documentation for BUILD_CONST_KEY_MAP (GH-19454) (GH-19495)
(cherry picked from commit 85dd6bb) Co-authored-by: laike9m <[email protected]> Automerge-Triggered-By: @zhangyangyu
1 parent f35e7d3 commit ee691b0

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

895895
.. opcode:: BUILD_CONST_KEY_MAP (count)
896896

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

901901
.. versionadded:: 3.6
902902

0 commit comments

Comments
 (0)