[Cython] For loop bug?
Magnus Lie Hetland
magnus at hetland.org
Wed Jan 28 16:28:15 CET 2009
On Jan 28, 2009, at 16:19, Stefan Behnel wrote:
> Definitely a bug, please file a bug report.
Will do.
> (if you don't have a trac account, please send a htpasswd line to
> Robert).
Done.
>> I realise that adding an "i -= 1" statement in general, as a blanket
>> solution, would be rather wasteful.
>
> Not at all. We only do the range() optimisation for C integers, and
> the C
> compiler will simply strip it out if it's not used.
Ah, of course -- good point :)
- M
--
Magnus Lie Hetland
http://hetland.org
More information about the Cython-dev
mailing list