Is current integer for-loop syntax a wart?
Greg Ewing
greg at cosc.canterbury.ac.nz
Sun Mar 10 23:37:28 EST 2002
brueckd at tbye.com wrote:
>
> Seeing range() in the code doesn't force you
> to pause and figure out what it means
In the simplest case, no. But when I come across
something like
range(9,-1,-1)
I certainly *do* have to pause and think about
what it means!
Simple range() is fine, but multi-parameter
range(), especially with a negative step,
seems very warty to me.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list