Skip to content

Commit e16599c

Browse files
Minor doc improvement (pythonGH-10341)
Change "star-operator" to "* operator". (cherry picked from commit dfd775a) Co-authored-by: Andre Delfino <[email protected]>
1 parent 23eb816 commit e16599c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ function:
959959
>>> getattr(p, 'x')
960960
11
961961

962-
To convert a dictionary to a named tuple, use the double-star-operator
962+
To convert a dictionary to a named tuple, use the ``**`` operator
963963
(as described in :ref:`tut-unpacking-arguments`):
964964

965965
>>> d = {'x': 11, 'y': 22}

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ The reverse situation occurs when the arguments are already in a list or tuple
560560
but need to be unpacked for a function call requiring separate positional
561561
arguments. For instance, the built-in :func:`range` function expects separate
562562
*start* and *stop* arguments. If they are not available separately, write the
563-
function call with the ``*``\ -operator to unpack the arguments out of a list
563+
function call with the ``*`` operator to unpack the arguments out of a list
564564
or tuple::
565565

566566
>>> list(range(3, 6)) # normal call with separate arguments
@@ -573,7 +573,7 @@ or tuple::
573573
single: **; in function calls
574574
575575
In the same fashion, dictionaries can deliver keyword arguments with the
576-
``**``\ -operator::
576+
``**`` operator::
577577

578578
>>> def parrot(voltage, state='a stiff', action='voom'):
579579
... print("-- This parrot wouldn't", action, end=' ')

0 commit comments

Comments
 (0)