PEP 276 Simple Iterator for ints (fwd)
David Eppstein
eppstein at ics.uci.edu
Wed Nov 28 18:46:47 EST 2001
In article <3C0575F4.9A23C894 at cosc.canterbury.ac.nz>,
Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
> I think the point Mr. Eppstein was making is that
> "for i in seq" can be read as "for all values of i
> such that i in seq is true". PEP 276 would break
> that, because "for i in 5" couldn't sensibly be
> read as "for all values of i such that i in 5
> is true", unless "i in 5" on its own were valid and
> had a rather unintuitive meaning.
Yes, thanks for expressing this more clearly.
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list