From 8662babfda668d84cd4020b734cc8b671f26781b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 22 May 2019 17:00:00 +0200 Subject: [PATCH 1/2] Doc: Add missing forward reference in the tutorial. --- Doc/tutorial/controlflow.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 905734539c6851..f47d99eb144bd4 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -482,9 +482,9 @@ When a final formal parameter of the form ``**name`` is present, it receives a dictionary (see :ref:`typesmapping`) containing all keyword arguments except for those corresponding to a formal parameter. This may be combined with a formal parameter of the form ``*name`` (described in the next subsection) which -receives a tuple containing the positional arguments beyond the formal parameter -list. (``*name`` must occur before ``**name``.) For example, if we define a -function like this:: +receives a tuple (see :ref:`tut-tuples`) containing the positional +arguments beyond the formal parameter list. (``*name`` must occur +before ``**name``.) For example, if we define a function like this:: def cheeseshop(kind, *arguments, **keywords): print("-- Do you have any", kind, "?") From d126060f5a5ffa46b92a01834ccd6e25359611bf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Mon, 27 May 2019 00:05:58 +0200 Subject: [PATCH 2/2] Update Doc/tutorial/controlflow.rst Co-Authored-By: Cheryl Sabella --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index f47d99eb144bd4..cfb9645e0da1e1 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -482,7 +482,7 @@ When a final formal parameter of the form ``**name`` is present, it receives a dictionary (see :ref:`typesmapping`) containing all keyword arguments except for those corresponding to a formal parameter. This may be combined with a formal parameter of the form ``*name`` (described in the next subsection) which -receives a tuple (see :ref:`tut-tuples`) containing the positional +receives a :ref:`tuple ` containing the positional arguments beyond the formal parameter list. (``*name`` must occur before ``**name``.) For example, if we define a function like this::