iters on ints? (reducing the need for range/xrange)

Michael Hudson mwh at python.net
Fri Nov 9 05:42:26 EST 2001


Greg Ewing <greg at cosc.canterbury.ac.nz> writes:

> 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.

Doesn't this depend on your set theory?  (Thinking back to the first
line of Jim's post...).

Horrific idea, BTW.

Cheers,
M.

-- 
  > So what does "abc" / "ab" equal?
  cheese
         -- Steve Holden defends obscure semantics on comp.lang.python



More information about the Python-list mailing list