mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Issue #16538: correctly describe MAKE_CLOSURE in docs.
Patch by Daniel Urban
This commit is contained in:
parent
19c2139d2d
commit
a5c430940c
1 changed files with 4 additions and 3 deletions
|
|
@ -763,9 +763,10 @@ the more significant byte last.
|
||||||
.. opcode:: MAKE_CLOSURE (argc)
|
.. opcode:: MAKE_CLOSURE (argc)
|
||||||
|
|
||||||
Creates a new function object, sets its *__closure__* slot, and pushes it on
|
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
|
the stack. TOS is the :term:`qualified name` of the function, TOS1 is the
|
||||||
containing cells for the closure's free variables. The function also has
|
code associated with the function, and TOS2 is the tuple containing cells for
|
||||||
*argc* default parameters, which are found below the cells.
|
the closure's free variables. The function also has *argc* default parameters,
|
||||||
|
which are found below the cells.
|
||||||
|
|
||||||
|
|
||||||
.. opcode:: BUILD_SLICE (argc)
|
.. opcode:: BUILD_SLICE (argc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue