[Python-ideas] return value of yield expressions

H. Krishnan hetchkay at gmail.com
Tue Sep 13 15:03:50 CEST 2011



> To start with the latter, I don't think that is going to fly.  All
> arguments to send must be returned as a single value by yield or cause
> most of the examples in the PEP380 discussion to fail.  Allowing
> arbitrary arguments to send would have to change that value in a
> backward-incompatible way when sending a single argument.
>

Actually, the issue is with how the return value is gathered rather than in 
send() itself, right? If the return value is specially gathered for 
unpacking (as you suggested), would there be any other issue with backward 
compatibility?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110913/0a50c914/attachment.html>


More information about the Python-ideas mailing list