David Mertz wrote:
 >>> three_inf = (count(), count(), count())
 >>> comp = (x for x in flatten(three_inf))
 >>> next(comp)
0
 >>> next(comp)
1 It's hard to see how that won't blow up under the new syntax (i.e. generally for all infinite sequences).


It won't blow up, because * in a generator expression
would be equivalent to yield-from.

--
Greg
_______________________________________________
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