Skip to content

Commit b369f58

Browse files
committed
Issue #21439: Merge with 3.4
2 parents f6f61ff + 2f78b84 commit b369f58

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ those made in the suite of the for-loop::
180180
for i in range(10):
181181
print(i)
182182
i = 5 # this will not affect the for-loop
183-
# be i will be overwritten with the next
183+
# because i will be overwritten with the next
184184
# index in the range
185185

186186

Doc/reference/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ An attribute reference is a primary followed by a period and a name:
522522
The primary must evaluate to an object of a type that supports attribute
523523
references, which most objects do. This object is then asked to produce the
524524
attribute whose name is the identifier. This production can be customized by
525-
overriding the :meth:`__getattr__` method). If this attribute is not available,
525+
overriding the :meth:`__getattr__` method. If this attribute is not available,
526526
the exception :exc:`AttributeError` is raised. Otherwise, the type and value of
527527
the object produced is determined by the object. Multiple evaluations of the
528528
same attribute reference may yield different objects.
@@ -1253,7 +1253,7 @@ Lambdas
12531253
lambda_expr: "lambda" [`parameter_list`]: `expression`
12541254
lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond`
12551255

1256-
Lambda expressions (sometimes called lambda forms) are create anonymous
1256+
Lambda expressions (sometimes called lambda forms) are used to create anonymous
12571257
functions. The expression ``lambda arguments: expression`` yields a function
12581258
object. The unnamed object behaves like a function object defined with ::
12591259

0 commit comments

Comments
 (0)