Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.