Doc: Add missing forward reference in the tutorial. (GH-13499)

This commit is contained in:
Julien Palard 2019-05-28 15:10:23 +02:00 committed by GitHub
parent 05f16416d9
commit 51ddab8dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 dictionary (see :ref:`typesmapping`) containing all keyword arguments except for
those corresponding to a formal parameter. This may be combined with a formal those corresponding to a formal parameter. This may be combined with a formal
parameter of the form ``*name`` (described in the next subsection) which parameter of the form ``*name`` (described in the next subsection) which
receives a tuple containing the positional arguments beyond the formal parameter receives a :ref:`tuple <tut-tuples>` containing the positional
list. (``*name`` must occur before ``**name``.) For example, if we define a arguments beyond the formal parameter list. (``*name`` must occur
function like this:: before ``**name``.) For example, if we define a function like this::
def cheeseshop(kind, *arguments, **keywords): def cheeseshop(kind, *arguments, **keywords):
print("-- Do you have any", kind, "?") print("-- Do you have any", kind, "?")