generator functions: why won't this work?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Apr 2 18:04:30 EDT 2008


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.

-- 
Gabriel Genellina




More information about the Python-list mailing list