Serhiy Storchaka wrote:
Ivan explained that
this function should be rough equivalent to
def f():
t = [(yield i) for i in range(3)]
return (x for x in t)
This seems useless to me. It turns a lazy iterator
into an eager one, which is a gross violation of the
author's intent in using a generator expression.
--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com