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
_______________________________________________ cython-devel mailing list [email protected] https://mail.python.org/mailman/listinfo/cython-devel
