| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.