Closed robertwb closed 12 years ago
scoder changed owner from somebody
to scoder
I've disabled the optimised looping for this case:
https://github.com/cython/cython/commit/f766a7fc2a4b7fa67b2db8592034980bff9c5783
scoder changed resolution to fixed
status from new
to closed
Follow-up ticket for optimising this case is in http://cython.trac.org/ticket/765.
When iterating over reversed(range()), the reversed swaps the bounds of the range() and offsets it by one. This is wrong for a step that is not 1 or -1. Example:
output:
Migrated from http://trac.cython.org/ticket/763