[Cython] Bug report: enumerate does not accept the "start" argument
Russell Warren
russ at perspexis.com
Tue May 8 08:25:11 CEST 2012
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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20120508/97248ea3/attachment-0001.html>
More information about the cython-devel
mailing list