[Cython] [Bug] Generator already executing

Stefan Behnel stefan_ml at behnel.de
Sat Nov 7 03:14:24 EST 2015


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



More information about the cython-devel mailing list