File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments