diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-03 14:32:40 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-03 14:32:40 (GMT) |
commit | 2f78b84c473787664940a97c49f4c64c20a03c48 (patch) | |
tree | 75b0db0d39abdc4a19854a10ead95b4c03b924be /Doc | |
parent | 4ce118e99a21639ceed744ced7d35d8f0ec5f0c2 (diff) | |
download | cpython-2f78b84c473787664940a97c49f4c64c20a03c48.zip cpython-2f78b84c473787664940a97c49f4c64c20a03c48.tar.gz cpython-2f78b84c473787664940a97c49f4c64c20a03c48.tar.bz2 |
Issue #21439: Fix a couple of typos.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 2 | ||||
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 52fc283..94b07f0 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -180,7 +180,7 @@ those made in the suite of the for-loop:: for i in range(10): print(i) i = 5 # this will not affect the for-loop - # be i will be overwritten with the next + # because i will be overwritten with the next # index in the range diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 5c86fbd..ddc3286 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. @@ -1245,7 +1245,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 :: |