From a0e2a01602f49d03886fd64e3b965110590f203c Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 25 May 2018 14:28:53 -0400 Subject: [PATCH] [3.6] bpo-33595: Fix lambda parameters being refered as arguments (GH-7037) --- Doc/glossary.rst | 2 +- Doc/reference/expressions.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index cbd1237f8e5fdf..b0335c1d258327 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -457,7 +457,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 8556fa810f6cb3..7fbfae747f6f41 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1390,10 +1390,10 @@ Lambdas Lambda expressions (sometimes called lambda forms) have the same syntactic position as expressions. They are a shorthand to create anonymous functions; the expression -``lambda arguments: expression`` yields a function object. The unnamed object +``lambda parameters: expression`` yields a function object. The unnamed object behaves like a function object defined with :: - def name(arguments): + def (parameters): return expression See section :ref:`function` for the syntax of parameter lists. Note that