Kaydet (Commit) 9f8c2194 authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Merge issue #16538: correctly describe MAKE_CLOSURE in docs.

Patch by Daniel Urban
......@@ -763,9 +763,10 @@ the more significant byte last.
.. opcode:: MAKE_CLOSURE (argc)
Creates a new function object, sets its *__closure__* slot, and pushes it on
the stack. TOS is the code associated with the function, TOS1 the tuple
containing cells for the closure's free variables. The function also has
*argc* default parameters, which are found below the cells.
the stack. TOS is the :term:`qualified name` of the function, TOS1 is the
code associated with the function, and TOS2 is the tuple containing cells for
the closure's free variables. The function also has *argc* default parameters,
which are found below the cells.
.. opcode:: BUILD_SLICE (argc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment