[Cython] [Bug] Generator already executing
Carlos Pita
carlosjosepita at gmail.com
Fri Nov 6 14:12:24 EST 2015
Say you define:
def f(*ts):
ts = (t for t in ts)
list(ts)
def g(*ts):
list(t for t in ts)
def h(*ts):
list((t for t in ts))
Then f(1,2,3) will fail with "Generator already executing" while g(1,2,3)
and h(1,2, 3) won't. All versions should work the same.
Cheers
--
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20151106/a6328d21/attachment.html>
More information about the cython-devel
mailing list