]> granicus.if.org Git - python/commitdiff
Fix lambda parameters being refered as arguments (GH-7037)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 May 2018 08:07:35 +0000 (01:07 -0700)
committerGitHub <noreply@github.com>
Tue, 22 May 2018 08:07:35 +0000 (01:07 -0700)
(cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/glossary.rst
Doc/reference/expressions.rst

index 279233906091279717a4caaead1e4b199b1699a9..5e25dbbdc06aa7a1c1750b6814b6b57902a2deb2 100644 (file)
@@ -595,7 +595,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
index ff890a815b5bbe3481656730b4aabf702cdd4f84..57ae639ab6e0ac555a6d9f00dcd1e68056a30134 100644 (file)
@@ -1571,12 +1571,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