File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ An attribute reference is a primary followed by a period and a name:
522522The primary must evaluate to an object of a type that supports attribute
523523references, which most objects do. This object is then asked to produce the
524524attribute 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,
526526the exception :exc: `AttributeError ` is raised. Otherwise, the type and value of
527527the object produced is determined by the object. Multiple evaluations of the
528528same 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
12571257functions. The expression ``lambda arguments: expression `` yields a function
12581258object. The unnamed object behaves like a function object defined with ::
12591259
You can’t perform that action at this time.
0 commit comments