Carl Banks wrote:
> Georg Brandl wrote:
>> What has a better chance of success in my eyes is an extension to yield
>> all items from an iterable without using an explicit for loop: instead of
>>
>> for item in iterable:
>>      yield item
>>
>> you could write
>>
>> yield from iterable
>>
>> or
>>
>> yield *iterable
> 
> Since this is nothing but an alternate way to spell a very specific
> (and not-too-common) for loop, I expect this has zero chance of
> success.

well, it could also be optimized internally, i.e. with a new opcode.

Georg
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to