[Python-ideas] return value of yield expressions
hetchkay at gmail.com
Tue Sep 13 17:30:50 CEST 2011
> var1, var2 = yield <expr>
> is used, send() needs to be called with two arguments.
> Sorry, this should be
*(var1, var2) = yield <expr>
if I use Jacob's syntax.
var1, var2 = yield <expr>
will require send be called with a single tuple as argument.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas