@@ -772,13 +772,13 @@ All of the following opcodes use their arguments.
772
772
773
773
.. opcode :: BUILD_MAP (count)
774
774
775
- Pushes a new dictionary object onto the stack. Pops `` 2 * count`` items
776
- so that the dictionary holds `` count `` entries:
775
+ Pushes a new dictionary object onto the stack. Pops * 2 \ * count* items
776
+ so that the dictionary holds * count * entries:
777
777
``{..., TOS3: TOS2, TOS1: TOS} ``.
778
778
779
779
.. versionchanged :: 3.5
780
780
The dictionary is created from stack items instead of creating an
781
- empty dictionary pre-sized to hold `` count `` items.
781
+ empty dictionary pre-sized to hold * count * items.
782
782
783
783
784
784
.. opcode :: BUILD_CONST_KEY_MAP (count)
@@ -800,7 +800,7 @@ All of the following opcodes use their arguments.
800
800
801
801
.. opcode :: BUILD_TUPLE_UNPACK (count)
802
802
803
- Pops `` count `` iterables from the stack, joins them in a single tuple,
803
+ Pops * count * iterables from the stack, joins them in a single tuple,
804
804
and pushes the result. This bytecode is used for implementing iterable
805
805
unpacking in tuple displays ``(*x, *y, *z) ``.
806
806
@@ -810,23 +810,26 @@ All of the following opcodes use their arguments.
810
810
.. opcode :: BUILD_LIST_UNPACK (count)
811
811
812
812
This is similar to :opcode: `BUILD_TUPLE_UNPACK `, but pushes a list
813
- instead of tuple.
813
+ instead of tuple. This bytecode is used for implementing iterable
814
+ unpacking in list displays ``[*x, *y, *z] ``.
814
815
815
816
.. versionadded :: 3.5
816
817
817
818
818
819
.. opcode :: BUILD_SET_UNPACK (count)
819
820
820
821
This is similar to :opcode: `BUILD_TUPLE_UNPACK `, but pushes a set
821
- instead of tuple.
822
+ instead of tuple. This bytecode is used for implementing iterable
823
+ unpacking in set displays ``{*x, *y, *z} ``.
822
824
823
825
.. versionadded :: 3.5
824
826
825
827
826
828
.. opcode :: BUILD_MAP_UNPACK (count)
827
829
828
- Pops ``count `` mappings from the stack, joins them in a single dictionary,
829
- and pushes the result.
830
+ Pops *count * mappings from the stack, merges them in a single dictionary,
831
+ and pushes the result. This bytecode is used for implementing iterable
832
+ unpacking in dictionary displays ``{**x, **y, **z} ``.
830
833
831
834
.. versionadded :: 3.5
832
835
@@ -835,8 +838,8 @@ All of the following opcodes use their arguments.
835
838
836
839
This is similar to :opcode: `BUILD_MAP_UNPACK `,
837
840
but is used for ``f(**x, **y, **z) `` call syntax. The lowest byte of
838
- `` oparg `` is the count of mappings, the relative position of the
839
- corresponding callable ``f `` is encoded in the second byte of `` oparg `` .
841
+ * oparg * is the count of mappings, the relative position of the
842
+ corresponding callable ``f `` is encoded in the second byte of * oparg * .
840
843
841
844
.. versionadded :: 3.5
842
845
0 commit comments