[Python-checkins] Fix lambda parameters being refered as arguments (GH-7037)

Julien Palard webhook-mailer at python.org
Tue May 22 01:57:49 EDT 2018


https://github.com/python/cpython/commit/268cc7c3f8f58075b42ff0cd6b6c6c5d76044895
commit: 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895
branch: master
author: Andrés Delfino <adelfino at gmail.com>
committer: Julien Palard <julien at palard.fr>
date: 2018-05-22T07:57:45+02:00
summary:

Fix lambda parameters being refered as arguments (GH-7037)

files:
M Doc/glossary.rst
M Doc/reference/expressions.rst

diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 0ee056ee28dd..194788824792 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -627,7 +627,7 @@ Glossary
    lambda
       An anonymous inline function consisting of a single :term:`expression`
       which is evaluated when the function is called.  The syntax to create
-      a lambda function is ``lambda [arguments]: expression``
+      a lambda function is ``lambda [parameters]: expression``
 
    LBYL
       Look before you leap.  This coding style explicitly tests for
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index e5af927da1ea..222b8978e370 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1608,12 +1608,12 @@ Lambdas
    lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond`
 
 Lambda expressions (sometimes called lambda forms) are used to create anonymous
-functions. The expression ``lambda arguments: expression`` yields a function
+functions. The expression ``lambda parameters: expression`` yields a function
 object.  The unnamed object behaves like a function object defined with:
 
 .. code-block:: none
 
-   def <lambda>(arguments):
+   def <lambda>(parameters):
        return expression
 
 See section :ref:`function` for the syntax of parameter lists.  Note that



More information about the Python-checkins mailing list