Anoop Saldanha wrote:
> We can fall back to exiting the loop early in case of a "for from", but in
> case of a "for in range()", I feel the second output above is more
> intuitive, since that is how a python "for in range()" behaves.

This was discussed in a separate thread. The solution is to keep the loop
variable in a temp variable and to assign that to the real loop variable
inside the loop.

The C compiler should be smart enough to alias the two variables in many
cases.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to