[Cython] range optimization and noqil
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Wed Feb 4 10:49:48 CET 2009
Lisandro Dalcin wrote:
> Trying to cythonizing this:
>
> cdef int f() nogil:
> cdef int i,j=0, n=3
> for i in range(n):
> j += 1
> return j
>
>
> I get this failure... Is this possible and easy to fix ?
>
Thanks, good point. This is now
http://trac.cython.org/cython_trac/ticket/205
I think it is definitely 0.12 stuff, so use a for-from construct if you
need this for 0.11.
If you just want to run the refnanny, perhaps consider just disabling
the line in the source raising the error on your local copy?
Dag Sverre
More information about the Cython-dev
mailing list