[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban.

antoine.pitrou python-checkins at python.org
Thu Aug 13 20:37:54 CEST 2015


https://hg.python.org/cpython/rev/2a41fb63c095
changeset:   97370:2a41fb63c095
branch:      3.5
parent:      97367:e3008318f76b
parent:      97369:c515b40a70eb
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Thu Aug 13 20:37:28 2015 +0200
summary:
  Issue #16554: fix description for MAKE_CLOSURE.  Initial patch by Daniel Urban.

files:
  Doc/library/dis.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -946,8 +946,8 @@
    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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list