mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
XXX something for amk's attention
This commit is contained in:
parent
baf3eb2410
commit
d615110949
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ needed. The exact rules are that a \keyword{yield}-expression must
|
||||||
always be parenthesized except when it occurs at the top-level
|
always be parenthesized except when it occurs at the top-level
|
||||||
expression on the right-hand side of an assignment, meaning
|
expression on the right-hand side of an assignment, meaning
|
||||||
you can to write \code{val = yield i} but \code{val = (yield i) + 12}.
|
you can to write \code{val = yield i} but \code{val = (yield i) + 12}.
|
||||||
|
% XXX ending of last para makes no sense
|
||||||
|
|
||||||
Values are sent into a generator by calling its
|
Values are sent into a generator by calling its
|
||||||
\method{send(\var{value})} method. The generator's code is then
|
\method{send(\var{value})} method. The generator's code is then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue