Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(49012)

Delta Between Two Patch Sets: Doc/library/dis.rst

Issue 27095: Simplify MAKE_FUNCTION
Left Patch Set: Created 3 years, 4 months ago
Right Patch Set: Created 3 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Include/opcode.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 :mod:`dis` --- Disassembler for Python bytecode 1 :mod:`dis` --- Disassembler for Python bytecode
2 =============================================== 2 ===============================================
3 3
4 .. module:: dis 4 .. module:: dis
5 :synopsis: Disassembler for Python bytecode. 5 :synopsis: Disassembler for Python bytecode.
6 6
7 **Source code:** :source:`Lib/dis.py` 7 **Source code:** :source:`Lib/dis.py`
8 8
9 -------------- 9 --------------
10 10
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 759
760 .. opcode:: BUILD_SET (count) 760 .. opcode:: BUILD_SET (count)
761 761
762 Works as :opcode:`BUILD_TUPLE`, but creates a set. 762 Works as :opcode:`BUILD_TUPLE`, but creates a set.
763 763
764 764
765 .. opcode:: BUILD_MAP (count) 765 .. opcode:: BUILD_MAP (count)
766 766
767 Pushes a new dictionary object onto the stack. The dictionary is pre-sized 767 Pushes a new dictionary object onto the stack. The dictionary is pre-sized
768 to hold *count* entries. 768 to hold *count* entries.
769
770
771 .. opcode:: BUILD_CONST_KEY_MAP (count)
772
773 The version of :opcode:`BUILD_MAP` specialized for constant keys. *count*
774 values are consumed from the stack. The top element on the stack contains
775 a tuple of keys.
776
777 .. versionadded:: 3.6
769 778
770 779
771 .. opcode:: LOAD_ATTR (namei) 780 .. opcode:: LOAD_ATTR (namei)
772 781
773 Replaces TOS with ``getattr(TOS, co_names[namei])``. 782 Replaces TOS with ``getattr(TOS, co_names[namei])``.
774 783
775 784
776 .. opcode:: COMPARE_OP (opname) 785 .. opcode:: COMPARE_OP (opname)
777 786
778 Performs a Boolean operation. The operation name can be found in 787 Performs a Boolean operation. The operation name can be found in
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 951
943 .. index:: builtin: slice 952 .. index:: builtin: slice
944 953
945 Pushes a slice object on the stack. *argc* must be 2 or 3. If it is 2, 954 Pushes a slice object on the stack. *argc* must be 2 or 3. If it is 2,
946 ``slice(TOS1, TOS)`` is pushed; if it is 3, ``slice(TOS2, TOS1, TOS)`` is 955 ``slice(TOS1, TOS)`` is pushed; if it is 3, ``slice(TOS2, TOS1, TOS)`` is
947 pushed. See the :func:`slice` built-in function for more information. 956 pushed. See the :func:`slice` built-in function for more information.
948 957
949 958
950 .. opcode:: EXTENDED_ARG (ext) 959 .. opcode:: EXTENDED_ARG (ext)
951 960
952 EXTENDED_ARG adds ``*ext* * 256`` to the next instruction's argument. 961 EXTENDED_ARG adds ``*ext* * 256`` to the next instruction's argument.
storchaka 2016/06/12 16:36:42 I would prefer to commit this in issue26647 togeth
953 This is used for arguments exceeding a byte in size, and can be chained 962 This is used for arguments exceeding a byte in size, and can be chained
954 to create 4-byte arguments. 963 to create 4-byte arguments.
955 964
956 965
957 .. opcode:: CALL_FUNCTION_VAR (argc) 966 .. opcode:: CALL_FUNCTION_VAR (argc)
958 967
959 Calls a function. *argc* is interpreted as in :opcode:`CALL_FUNCTION`. The 968 Calls a function. *argc* is interpreted as in :opcode:`CALL_FUNCTION`. The
960 top element on the stack contains the variable argument list, followed by 969 top element on the stack contains the variable argument list, followed by
961 keyword and positional arguments. 970 keyword and positional arguments.
962 971
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 1065
1057 1066
1058 .. data:: haslocal 1067 .. data:: haslocal
1059 1068
1060 Sequence of bytecodes that access a local variable. 1069 Sequence of bytecodes that access a local variable.
1061 1070
1062 1071
1063 .. data:: hascompare 1072 .. data:: hascompare
1064 1073
1065 Sequence of bytecodes of Boolean operations. 1074 Sequence of bytecodes of Boolean operations.
LEFTRIGHT
« no previous file | Include/opcode.h » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+