diff --git a/pep-0340.txt b/pep-0340.txt index 7f71b939f..3c984ebea 100644 --- a/pep-0340.txt +++ b/pep-0340.txt @@ -277,7 +277,7 @@ Specification: the Anonymous Block Statement Note that a yield-statement (or a yield-expression, see below) in a block-statement is not treated differently. It suspends the function containing the block *without* notifying the block's - iterator. The blocks's iterator is entirely unaware of this + iterator. The block's iterator is entirely unaware of this yield, since the local control flow doesn't actually leave the block. In other words, it is *not* like a break, continue or return statement. When the loop that was resumed by the yield @@ -351,7 +351,7 @@ Specification: Generator Exception Handling garbage-collected. This is no different than the guarantees that are made about finalizers (__del__() methods) of other objects. - Note: the syntactic extensions to yield make it use very similar + Note: the syntactic extensions to yield make its use very similar to that in Ruby. This is intentional. Do note that in Python the block passes a value to the generator using "continue EXPR" rather than "return EXPR", and the underlying mechanism whereby control