diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-03 14:34:39 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-03 14:34:39 (GMT) |
commit | b369f5875c78bf6252b94862eb93bdb2f71c77c0 (patch) | |
tree | 465cf0bbe03e1c9deb3567a5396e8cdfe02b346f /Doc/reference/expressions.rst | |
parent | f6f61ff339c80dd164668c9689e0b56c5dfc5417 (diff) | |
parent | 2f78b84c473787664940a97c49f4c64c20a03c48 (diff) | |
download | cpython-b369f5875c78bf6252b94862eb93bdb2f71c77c0.zip cpython-b369f5875c78bf6252b94862eb93bdb2f71c77c0.tar.gz cpython-b369f5875c78bf6252b94862eb93bdb2f71c77c0.tar.bz2 |
Issue #21439: Merge with 3.4
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index cdc0cff..27ff04a 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -522,7 +522,7 @@ An attribute reference is a primary followed by a period and a name: The primary must evaluate to an object of a type that supports attribute references, which most objects do. This object is then asked to produce the attribute whose name is the identifier. This production can be customized by -overriding the :meth:`__getattr__` method). If this attribute is not available, +overriding the :meth:`__getattr__` method. If this attribute is not available, the exception :exc:`AttributeError` is raised. Otherwise, the type and value of the object produced is determined by the object. Multiple evaluations of the same attribute reference may yield different objects. @@ -1253,7 +1253,7 @@ Lambdas lambda_expr: "lambda" [`parameter_list`]: `expression` lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond` -Lambda expressions (sometimes called lambda forms) are create anonymous +Lambda expressions (sometimes called lambda forms) are used to create anonymous functions. The expression ``lambda arguments: expression`` yields a function object. The unnamed object behaves like a function object defined with :: |