From: Raymond Hettinger Date: Fri, 11 Jan 2008 23:25:18 +0000 (+0000) Subject: Update the opcode docs for STORE_MAP and BUILD_MAP X-Git-Tag: v2.6a1~634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bed4dd459ddebec5bf43ef8c658ed4a194b518cb;p=python Update the opcode docs for STORE_MAP and BUILD_MAP --- diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index 487c47184c..8236a9cd88 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)