mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
merge with 3.3
This commit is contained in:
commit
6930777c63
4 changed files with 18 additions and 17 deletions
|
|
@ -588,7 +588,7 @@ Lambda Expressions
|
|||
|
||||
Small anonymous functions can be created with the :keyword:`lambda` keyword.
|
||||
This function returns the sum of its two arguments: ``lambda a, b: a+b``.
|
||||
Lambda forms can be used wherever function objects are required. They are
|
||||
Lambda functions can be used wherever function objects are required. They are
|
||||
syntactically restricted to a single expression. Semantically, they are just
|
||||
syntactic sugar for a normal function definition. Like nested function
|
||||
definitions, lambda functions can reference variables from the containing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue