[Python-checkins] cpython: Issue #28030: Update the language reference for PEP 468.
eric.snow
python-checkins at python.org
Thu Sep 8 17:02:03 EDT 2016
https://hg.python.org/cpython/rev/cdbc5ee744a1
changeset: 103356:cdbc5ee744a1
user: Eric Snow <ericsnowcurrently at gmail.com>
date: Thu Sep 08 13:59:58 2016 -0700
summary:
Issue #28030: Update the language reference for PEP 468.
files:
Doc/reference/compound_stmts.rst | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -546,11 +546,12 @@
function call always assigns values to all parameters mentioned in the parameter
list, either from position arguments, from keyword arguments, or from default
values. If the form "``*identifier``" is present, it is initialized to a tuple
-receiving any excess positional parameters, defaulting to the empty tuple. If
-the form "``**identifier``" is present, it is initialized to a new dictionary
-receiving any excess keyword arguments, defaulting to a new empty dictionary.
-Parameters after "``*``" or "``*identifier``" are keyword-only parameters and
-may only be passed used keyword arguments.
+receiving any excess positional parameters, defaulting to the empty tuple.
+If the form "``**identifier``" is present, it is initialized to a new
+ordered mapping receiving any excess keyword arguments, defaulting to a
+new empty mapping of the same type. Parameters after "``*``" or
+"``*identifier``" are keyword-only parameters and may only be passed
+used keyword arguments.
.. index:: pair: function; annotations
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list