[docs] [issue13026] Dis module - documentation of MAKE_FUNCTION
Terry J. Reedy
report at bugs.python.org
Thu Sep 22 09:02:19 CEST 2011
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Right. This opcode is the end of a sequence of opcodes that sets up the stack in the way expected. Perhaps something like
Pushes a new function object on the stack. From bottom to top, the consumed stack must have have argc & 0xFF positional default parameter objects, (argc >> 8) & 0xFF keyword only name, default parameter object pairs (with name and object in separate positions), (argc >> 16) & 0x7FFF parameter annotations, a tuple listing the parameter names for the annotations, and finally a code object as TOS.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13026>
_______________________________________
More information about the docs
mailing list