First time here? Check out the FAQ!
answered 2013-09-04 18:22:36 +0200
I don't think Cython supports generators yet. In any case, changing
s=sum(l[j][1] for j in range(a))
to
s=sum([l[j][1] for j in range(a)])
solves the issue.