iters on ints? (reducing the need for range/xrange)
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Nov 8 22:37:18 EST 2001
Rainer Deyke wrote:
>
> Seriously, I don't see how this is worse or less Pythonic than, say, 'for
> line in file'.
It makes sense to think of files as containing lines,
but it's stretching things to think of the integer 10
somehow "containing" the integers 0 to 9.
--
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