Hello, I am not sure if this is a bug or it is the intended behaviour, however, consider for example this snippet:
[...] def test(): cdef int i for i from 0 <= i < 10: print "foo" [...] If I save it into x.pyx and compile it with: $ cython -Wextra x.pyx I obtain the warning: [...] warning: x.pyx:2:13: Unused entry 'i' [...] IMHO, this is a false positive since the i variable is indeed used as a counter in the loop. I guess cython considers it unused due to the fact that it does not appear on the right hand side of an assignment nor it is further used as an argument in a function, isn’t it? Best regards, Samuele -- Samuele Kaplun Invenio Developer ** <http://invenio-software.org/> _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel