Python's built-in function 'enumerate' has a lesser-known 2nd argument that allows the start value of the enumeration to be set. See the python docs here: http://docs.python.org/library/functions.html#enumerate
Cython 0.16 doesn't like it, and only allows one argument. Here is a simple file to reproduce the failure: for i in enumerate("abc", 1): > print i And the resulting output complaint: Error compiling Cython file: > ------------------------------------------------------------ > ... > for i in enumerate("abc", 1): > ^ > ------------------------------------------------------------ > deploy/_working/_cython_test.pyx:1:18: enumerate() takes at most 1 argument I have requested a trac login to file bugs like this, but the request is pending (just sent).
_______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel