File tree 1 file changed +7
-14
lines changed
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.
873
873
.. versionadded :: 3.9
874
874
875
875
876
- .. opcode :: SET_UPDATE
876
+ .. opcode :: SET_UPDATE (i)
877
877
878
878
Calls ``set.update(TOS1[-i], TOS) ``. Used to build sets.
879
879
880
880
.. versionadded :: 3.9
881
881
882
882
883
- .. opcode :: BUILD_MAP_UNPACK (count )
883
+ .. opcode :: DICT_UPDATE (i )
884
884
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.
888
886
889
- .. versionadded :: 3.5
887
+ .. versionadded :: 3.9
890
888
891
889
892
- .. opcode :: BUILD_MAP_UNPACK_WITH_CALL (count)
890
+ .. opcode :: DICT_MERGE
893
891
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.
897
893
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
902
895
903
896
904
897
.. opcode :: LOAD_ATTR (namei)
You can’t perform that action at this time.
0 commit comments