We HAVE spellings for these things:

c from:
>>    yield from a
>>    yield from b
>>
>
c = chain(a, b)


> c as list from:
>>    yield from a
>>    yield from b
>>
>
c = list(chain(a, b))


> c as sum from:
>>    yield from a
>>    yield from b
>>
>
c = sum(chain(a, b))

Those really are not "crazy generator expressions."


-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to