File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -873,32 +873,25 @@ All of the following opcodes use their arguments.
873873 .. versionadded :: 3.9
874874
875875
876- .. opcode :: SET_UPDATE
876+ .. opcode :: SET_UPDATE (i)
877877
878878 Calls ``set.update(TOS1[-i], TOS) ``. Used to build sets.
879879
880880 .. versionadded :: 3.9
881881
882882
883- .. opcode :: BUILD_MAP_UNPACK (count )
883+ .. opcode :: DICT_UPDATE (i )
884884
885- Pops *count * mappings from the stack, merges them into a single dictionary,
886- and pushes the result. Implements dictionary unpacking in dictionary
887- displays ``{**x, **y, **z} ``.
885+ Calls ``dict.update(TOS1[-i], TOS) ``. Used to build dicts.
888886
889- .. versionadded :: 3.5
887+ .. versionadded :: 3.9
890888
891889
892- .. opcode :: BUILD_MAP_UNPACK_WITH_CALL (count)
890+ .. opcode :: DICT_MERGE
893891
894- This is similar to :opcode: `BUILD_MAP_UNPACK `,
895- but is used for ``f(**x, **y, **z) `` call syntax. The stack item at
896- position ``count + 2 `` should be the corresponding callable ``f ``.
892+ Like :opcode: `DICT_UPDATE ` but raises an exception for duplicate keys.
897893
898- .. versionadded :: 3.5
899- .. versionchanged :: 3.6
900- The position of the callable is determined by adding 2 to the opcode
901- argument instead of encoding it in the second byte of the argument.
894+ .. versionadded :: 3.9
902895
903896
904897.. opcode :: LOAD_ATTR (namei)
You can’t perform that action at this time.
0 commit comments