Prajwal Suhas P wrote:
> Something like this -
>
> __pyx_v_5test1_n = 10;
> __pyx_v_5test1_const_n = 10;
Acutally, it is more like
__pyx_v_5test1_n = 10;
__pyx_t1 = __pyx_v_5test1_n
...
A better example than the one in the ticket is:
"""
>>> f()
g called
0
1
2
2
"""
cdef int g():
print "g called"
return 3
def f():
cdef int i
for i in range(g()):
print i
print i
Here, "g called" will be printed three times if compiled in Cython;
which is obviously not right. You should probably work with this example
as well right away.
Great that you're looking at this BTW.
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev