summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-11 23:25:18 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-11 23:25:18 (GMT)
commitbed4dd459ddebec5bf43ef8c658ed4a194b518cb (patch)
treed4e1c40fddc51f9e9aea5fa439a91f6dee18a9a8 /Doc/library/dis.rst
parent43617bc610a92d0025a9c9473fdbe0d81c51fd4d (diff)
downloadcpython-bed4dd459ddebec5bf43ef8c658ed4a194b518cb.zip
cpython-bed4dd459ddebec5bf43ef8c658ed4a194b518cb.tar.gz
cpython-bed4dd459ddebec5bf43ef8c658ed4a194b518cb.tar.bz2
Update the opcode docs for STORE_MAP and BUILD_MAP
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 487c471..8236a9c 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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)