[Python-Dev] PEP 276 Simple Iterator for ints

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 19 Nov 2001 18:10:03 +1300 (NZDT)


Armin Rigo <arigo@ulb.ac.be>:

> As a logician I like "for i in 10" a lot -- indeed, it is common to
> identify a natural number with the set of its predecessors.

Only amongst a certain specialised breed of mathematician,
I think. I'm sure most people don't think of the integers
that way when actually using them in their day-to-day
work. I certainly don't.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+