summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-23 13:28:34 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-23 13:28:34 (GMT)
commita5c430940c0594563f3d4ac66eef2bd82904f7f4 (patch)
tree9a89a1892ad5a91bf2a3474d5199ca86e9d0fe46
parent19c2139d2d7ce873b175b5a38741ecb8cda53220 (diff)
downloadcpython-a5c430940c0594563f3d4ac66eef2bd82904f7f4.zip
cpython-a5c430940c0594563f3d4ac66eef2bd82904f7f4.tar.gz
cpython-a5c430940c0594563f3d4ac66eef2bd82904f7f4.tar.bz2
Issue #16538: correctly describe MAKE_CLOSURE in docs.
Patch by Daniel Urban
-rw-r--r--Doc/library/dis.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 854c521..4339f55 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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)