mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
SF Bug #1563963, add missing word and cleanup first sentance
This commit is contained in:
parent
d3f91908dd
commit
9356e11223
1 changed files with 2 additions and 2 deletions
|
@ -540,10 +540,10 @@ Traceback (most recent call last):
|
|||
StopIteration
|
||||
\end{verbatim}
|
||||
|
||||
Because \keyword{yield} will often be returning \constant{None}, you
|
||||
\keyword{yield} will usually return \constant{None}, you
|
||||
should always check for this case. Don't just use its value in
|
||||
expressions unless you're sure that the \method{send()} method
|
||||
will be the only method used resume your generator function.
|
||||
will be the only method used to resume your generator function.
|
||||
|
||||
In addition to \method{send()}, there are two other new methods on
|
||||
generators:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue