[Python-checkins] Fix lambda parameters being refered as arguments (GH-7037)
Miss Islington (bot)
webhook-mailer at python.org
Tue May 22 04:07:39 EDT 2018
https://github.com/python/cpython/commit/ab90ea2a9c818e7016359cb368f025dd274b27b9
commit: ab90ea2a9c818e7016359cb368f025dd274b27b9
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-05-22T01:07:35-07:00
summary:
Fix lambda parameters being refered as arguments (GH-7037)
(cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895)
Co-authored-by: Andrés Delfino <adelfino at gmail.com>
files:
M Doc/glossary.rst
M Doc/reference/expressions.rst
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 279233906091..5e25dbbdc06a 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -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
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index ff890a815b5b..57ae639ab6e0 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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
More information about the Python-checkins
mailing list