summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2015-08-13 18:37:28 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2015-08-13 18:37:28 (GMT)
commit5e8d47f6ab98f607e2df7b4ad27964eec70429a4 (patch)
tree341aa7b241ba96fa690b8a5265cb134d7b3bc035 /Doc/library
parentc77088d055ea23e5e28648864b62421c7eae20c5 (diff)
parent4ce4f974da6dd67c0701454453420988624241d8 (diff)
downloadcpython-5e8d47f6ab98f607e2df7b4ad27964eec70429a4.zip
cpython-5e8d47f6ab98f607e2df7b4ad27964eec70429a4.tar.gz
cpython-5e8d47f6ab98f607e2df7b4ad27964eec70429a4.tar.bz2
Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/dis.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 7a214ed..1bcb3a4 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -946,8 +946,8 @@ the more significant byte last.
Creates a new function object, sets its *__closure__* slot, and pushes it on
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.
+ the closure's free variables. *argc* is interpreted as in ``MAKE_FUNCTION``;
+ the annotations and defaults are also in the same order below TOS2.
.. opcode:: BUILD_SLICE (argc)