[Bug] Generator already executing
Nov. 6, 2015
7:12 p.m.
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
November 2015
8:14 a.m.
Carlos Pita schrieb am 06.11.2015 um 20:12:
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.
It's a known bug. http://trac.cython.org/ticket/600 Stefan
3687
Age (days ago)
3688
Last active (days ago)
1 comments
2 participants
participants (2)
-
Carlos Pita -
Stefan Behnel