Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3cb26b7

Browse files
committed
merge with 3.3
2 parents 32b2c62 + c96ef1f commit 3cb26b7

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

Doc/library/dis.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,17 @@ the more significant byte last.
846846

847847
.. opcode:: MAKE_FUNCTION (argc)
848848

849-
Pushes a new function object on the stack. TOS is the
850-
:term:`qualified name` of the function; TOS1 is the code associated with
851-
the function. The function object is defined to have *argc* default parameters,
852-
which are found below TOS1.
849+
Pushes a new function object on the stack. From bottom to top, the consumed
850+
stack must consist of
851+
852+
* ``argc & 0xFF`` default argument objects in positional order
853+
* ``(argc >> 8) & 0xFF`` pairs of name and default argument, with the name
854+
just below the object on the stack, for keyword-only parameters
855+
* ``(argc >> 16) & 0x7FFF`` parameter annotation objects
856+
* a tuple listing the parameter names for the annotations (only if there are
857+
ony annotation objects)
858+
* the code associated with the function (at TOS1)
859+
* the :term:`qualified name` of the function (at TOS)
853860

854861

855862
.. opcode:: MAKE_CLOSURE (argc)

0 commit comments

Comments
 (0)