generator functions: why won't this work?

Robert Lehmann stargaming at gmail.com
Fri Apr 4 15:04:28 EDT 2008


On Wed, 02 Apr 2008 19:04:30 -0300, Gabriel Genellina wrote:

> En Wed, 02 Apr 2008 14:11:30 -0300, <castironpi at gmail.com> escribió:
> 
>> On Apr 1, 10:42 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
>>> En Tue, 01 Apr 2008 23:56:50 -0300, <zillo... at googlemail.com>
>>> escribió:
>>>
>>>    yield *iterable
>>>
>>> could be used as a shortcut for this:
>>>
>>>    for __temp in iterable: yield __temp
>>
>> How serious were you about that?
> 
> Not so much, I haven't thougth enough on it. Looks fine in principle,
> but yield expressions may be a problem.

Issue 2292: "Missing *-unpacking generalizations"
http://bugs.python.org/issue2292

Discussion on python-3000.devel:
http://thread.gmane.org/gmane.comp.python.python-3000.devel/12131

-- 
Robert "Stargaming" Lehmann



More information about the Python-list mailing list