[docs] [issue13026] Dis module - documentation of MAKE_FUNCTION

Terry J. Reedy report at bugs.python.org
Sun Jan 8 21:40:38 CET 2012

Terry J. Reedy <tjreedy at udel.edu> added the comment:

"For each keyword only default" is not in my text, but if you are referring to "keyword only name, default parameter object pairs ", yes. Here is a revised suggested wording:

Pushes a new function object on the stack. From bottom to top, the consumed stack must have have (argc & 0xFF) default argument objects in positional order, ((argc >> 8) & 0xFF) (name, default argument) pairs, with name just below the object on the stack, for keyword-only parameters, ((argc >> 16) & 0x7FFF) parameter annotation objects, a tuple listing the parameter names for the annotations, and finally a code object as TOS.


Python tracker <report at bugs.python.org>

More information about the docs mailing list