Issue #28030: Update the language reference for PEP 468.

This commit is contained in:
Eric Snow 2016-09-08 13:59:58 -07:00
parent a68c1bca7b
commit b957b0c2bc
1 changed files with 6 additions and 5 deletions

View File

@ -546,11 +546,12 @@ Function call semantics are described in more detail in section :ref:`calls`. A
function call always assigns values to all parameters mentioned in the parameter function call always assigns values to all parameters mentioned in the parameter
list, either from position arguments, from keyword arguments, or from default list, either from position arguments, from keyword arguments, or from default
values. If the form "``*identifier``" is present, it is initialized to a tuple values. If the form "``*identifier``" is present, it is initialized to a tuple
receiving any excess positional parameters, defaulting to the empty tuple. If receiving any excess positional parameters, defaulting to the empty tuple.
the form "``**identifier``" is present, it is initialized to a new dictionary If the form "``**identifier``" is present, it is initialized to a new
receiving any excess keyword arguments, defaulting to a new empty dictionary. ordered mapping receiving any excess keyword arguments, defaulting to a
Parameters after "``*``" or "``*identifier``" are keyword-only parameters and new empty mapping of the same type. Parameters after "``*``" or
may only be passed used keyword arguments. "``*identifier``" are keyword-only parameters and may only be passed
used keyword arguments.
.. index:: pair: function; annotations .. index:: pair: function; annotations