summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2019-03-27 01:17:50 (GMT)
committerÉric Araujo <merwok@netwok.org>2019-03-27 01:17:50 (GMT)
commitdfd775a0b1aee51d842b20cdebd97cc52c0b32e7 (patch)
treec0ac3561e92d6a09cc78626af4370818d084273a
parent484f20d2ff95cc2e1bea759852da307bc1d1d944 (diff)
downloadcpython-dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.zip
cpython-dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.tar.gz
cpython-dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.tar.bz2
Minor doc improvement (GH-10341)
Change "star-operator" to "* operator".
-rw-r--r--Doc/library/collections.rst2
-rw-r--r--Doc/tutorial/controlflow.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 64de970..8d53e68 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -971,7 +971,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}
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 9057345..abf163d 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
@@ -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=' ')