[Python-ideas] return value of yield expressions

H. Krishnan hetchkay at gmail.com
Tue Sep 13 17:30:50 CEST 2011



> If 
> 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...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110913/b4be8fdd/attachment.html>


More information about the Python-ideas mailing list