[Python-checkins] [3.7] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19496)
Miss Islington (bot)
webhook-mailer at python.org
Sun Apr 12 23:01:47 EDT 2020
https://github.com/python/cpython/commit/0a9ec9faa7b54f5a1a66263f5047b322e0222492
commit: 0a9ec9faa7b54f5a1a66263f5047b322e0222492
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-04-12T20:01:39-07:00
summary:
[3.7] Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454) (GH-19496)
(cherry picked from commit 85dd6bb1f61f7edcd6ac0b640a98644531690a0e)
Co-authored-by: laike9m <laike9m at users.noreply.github.com>
Automerge-Triggered-By: @zhangyangyu
files:
M Doc/library/dis.rst
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 4b604f5921658..239cf74a1a72e 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -835,9 +835,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
More information about the Python-checkins
mailing list