This commit is contained in:
Skip Montanaro 2005-04-29 15:23:34 +00:00
parent 9dc201b9e4
commit 5ae9e6d5e8
1 changed files with 2 additions and 2 deletions

View File

@ -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