Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b957b0c

Browse files
Issue #28030: Update the language reference for PEP 468.
1 parent a68c1bc commit b957b0c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/reference/compound_stmts.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,12 @@ Function call semantics are described in more detail in section :ref:`calls`. A
546546
function call always assigns values to all parameters mentioned in the parameter
547547
list, either from position arguments, from keyword arguments, or from default
548548
values. If the form "``*identifier``" is present, it is initialized to a tuple
549-
receiving any excess positional parameters, defaulting to the empty tuple. If
550-
the form "``**identifier``" is present, it is initialized to a new dictionary
551-
receiving any excess keyword arguments, defaulting to a new empty dictionary.
552-
Parameters after "``*``" or "``*identifier``" are keyword-only parameters and
553-
may only be passed used keyword arguments.
549+
receiving any excess positional parameters, defaulting to the empty tuple.
550+
If the form "``**identifier``" is present, it is initialized to a new
551+
ordered mapping receiving any excess keyword arguments, defaulting to a
552+
new empty mapping of the same type. Parameters after "``*``" or
553+
"``*identifier``" are keyword-only parameters and may only be passed
554+
used keyword arguments.
554555

555556
.. index:: pair: function; annotations
556557

0 commit comments

Comments
 (0)