[Cython] Variable Step Value

Favian Contreras fnc4 at cornell.edu
Thu Jan 22 05:14:21 CET 2015


Hey all,

I am having some trouble figuring out how to pass in an extra IfStatNode in
Optimize.py, to the code generation stage (see 1st commented block). I am
also having trouble getting the temp variable of the iteration variable, so
that I can adjust the temp to be the value that would be in index (see the
2nd comment block), before the iteration variable gets set.

As of now I get the correct number of steps, as long as the step value is
not 0. I've tried making these fields "StatListNode"s, but that gives a
messy error. Any suggestions for how to handle these 2 problems?

commit:
https://github.com/BigFav/cython/commit/015440543b051168cb34441a6a8494b6fa5bdd7c

Thanks,
Favian Contreras
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20150121/a1b75ab0/attachment.html>


More information about the cython-devel mailing list