PEP 276 Simple Iterator for ints (fwd)

Paul Jackson pj at sgi.com
Wed Nov 28 19:17:34 EST 2001


Greg wrote:
> ... unless "i in 5" on its own were valid and
> had a rather unintuitive meaning.

But "i in 5" does have exactly the meaning needed here,
for:
    0 is the nul set
    1 is the set containing 0
    2 is the set containing 0 and 1
    ...
    5 is the set containing 0 through 4
    ...
    n is the set containing 0 through n-1.

Well ... to the 3 dozen people on the planet who majored
in set theory this is all quite intuitive.

I will grant that I'm in a distinct minority <grin>.

-- 

                          I won't rest till it's the best ...
                          Manager, Linux Scalability
                          Paul Jackson <pj at sgi.com> 1.650.933.1373



More information about the Python-list mailing list