Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
268cc7c3
Commit
268cc7c3
authored
May 22, 2018
by
Andrés Delfino
Committed by
Julien Palard
May 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lambda parameters being refered as arguments (GH-7037)
parent
b7555bab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/glossary.rst
Doc/glossary.rst
+1
-1
Doc/reference/expressions.rst
Doc/reference/expressions.rst
+2
-2
No files found.
Doc/glossary.rst
View file @
268cc7c3
...
...
@@ -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
[
argument
s
]:
expression
``
a
lambda
function
is
``
lambda
[
parameter
s
]:
expression
``
LBYL
Look
before
you
leap
.
This
coding
style
explicitly
tests
for
...
...
Doc/reference/expressions.rst
View file @
268cc7c3
...
...
@@ -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
argument
s: expression`` yields a function
functions. The expression ``lambda
parameter
s: expression`` yields a function
object. The unnamed object behaves like a function object defined with:
.. code-block:: none
def <lambda>(
argument
s):
def <lambda>(
parameter
s):
return expression
See section :ref:`function` for the syntax of parameter lists. Note that
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment