diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-03-28 04:03:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-28 04:03:02 (GMT) |
commit | fb28fcc9252da51001b98cd93d65fb0e9b43aa3e (patch) | |
tree | 1c83688095576c9f25e1263ec8d9ae717857acda /Doc/tutorial | |
parent | b95a79c928fc4a6135d91c0c553cb2a63cf15140 (diff) | |
download | cpython-fb28fcc9252da51001b98cd93d65fb0e9b43aa3e.zip cpython-fb28fcc9252da51001b98cd93d65fb0e9b43aa3e.tar.gz cpython-fb28fcc9252da51001b98cd93d65fb0e9b43aa3e.tar.bz2 |
Revert "Minor doc improvement (GH-10341)" (GH-12597)
This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index abf163d..9057345 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=' ') |