]> granicus.if.org Git - python/commitdiff
Fix lambda parameters being refered as arguments (GH-7037)
authorAndrés Delfino <adelfino@gmail.com>
Tue, 22 May 2018 05:57:45 +0000 (02:57 -0300)
committerJulien Palard <julien@palard.fr>
Tue, 22 May 2018 05:57:45 +0000 (07:57 +0200)
Doc/glossary.rst
Doc/reference/expressions.rst

index 0ee056ee28dd37d736ce51734bca0f741f6d9693..194788824792753d15bcacd50acfd145ebb8cd67 100644 (file)
@@ -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
index e5af927da1eae5125292a51207a39a3895c44849..222b8978e3709ab5905db711fa80cded120a52df 100644 (file)
@@ -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