From 995c1a5ed4eb34cc5ea828ca6630e2c9b8eab487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Mon, 5 Nov 2018 15:45:03 -0300 Subject: [PATCH 1/3] Update controlflow.rst --- 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 bf6fbe21a7f710..32f62055226412 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -560,7 +560,7 @@ The reverse situation occurs when the arguments are already in a list or tuple but need to be unpacked for a function call requiring separate positional arguments. For instance, the built-in :func:`range` function expects separate *start* and *stop* arguments. If they are not available separately, write the -function call with the ``*``\ -operator to unpack the arguments out of a list +function call with the ``*`` operator to unpack the arguments out of a list or tuple:: >>> list(range(3, 6)) # normal call with separate arguments From 4d8c1eeb3ad9a83145cb84ccbab8ad3669f035a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Mon, 5 Nov 2018 15:46:50 -0300 Subject: [PATCH 2/3] Update controlflow.rst --- 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 32f62055226412..c2155859e16bf0 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -573,7 +573,7 @@ or tuple:: single: **; in function calls In the same fashion, dictionaries can deliver keyword arguments with the -``**``\ -operator:: +``**`` operator:: >>> def parrot(voltage, state='a stiff', action='voom'): ... print("-- This parrot wouldn't", action, end=' ') From f160a4afaf7d0806473725840b77a9be0c67f3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Mon, 5 Nov 2018 15:48:43 -0300 Subject: [PATCH 3/3] Update collections.rst --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 6b9d85abaae726..f1485ece48306b 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -944,7 +944,7 @@ function: >>> getattr(p, 'x') 11 -To convert a dictionary to a named tuple, use the double-star-operator +To convert a dictionary to a named tuple, use the ``**`` operator (as described in :ref:`tut-unpacking-arguments`): >>> d = {'x': 11, 'y': 22}