mirror of
https://github.com/python/cpython.git
synced 2026-03-25 22:20:46 +00:00
Update the opcode docs for STORE_MAP and BUILD_MAP
This commit is contained in:
parent
43617bc610
commit
bed4dd459d
1 changed files with 7 additions and 3 deletions
|
|
@ -608,10 +608,10 @@ the more significant byte last.
|
|||
Works as ``BUILD_TUPLE``, but creates a list.
|
||||
|
||||
|
||||
.. opcode:: BUILD_MAP (zero)
|
||||
.. opcode:: BUILD_MAP (count)
|
||||
|
||||
Pushes a new empty dictionary object onto the stack. The argument is ignored
|
||||
and set to zero by the compiler.
|
||||
Pushes a new dictionary object onto the stack. The dictionary is pre-sized
|
||||
to hold *count* entries.
|
||||
|
||||
|
||||
.. opcode:: LOAD_ATTR (namei)
|
||||
|
|
@ -691,6 +691,10 @@ the more significant byte last.
|
|||
Pushes a try block from a try-except clause onto the block stack. *delta* points
|
||||
to the finally block.
|
||||
|
||||
.. opcode:: STORE_MAP ()
|
||||
|
||||
Store a key and value pair in a dictionary. Pops the key and value while leaving
|
||||
the dictionary on the stack.
|
||||
|
||||
.. opcode:: LOAD_FAST (var_num)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue