PEP 276 Simple Iterator for ints
James_Althoff at i2.com
James_Althoff at i2.com
Thu Nov 15 14:29:43 EST 2001
More information about the Python-list mailing list
Thu Nov 15 14:29:43 EST 2001
- Previous message (by thread): PEP 276 Simple Iterator for ints
- Next message (by thread): PEP 276 Simple Iterator for ints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jeff Shannon wrote: >David Eppstein wrote: > >> You seem to be inconsistent here about whether you want these ranges to be >> open or closed on the right. I think closed is the only reasonable >> choice for this syntax. > >Which is exactly why I think that the Haskell-ish syntax is a bad idea. This >syntax cries out to be a closed interval, and it would be very confusing if >used as a half-open interval. But that would make it the *only* case of >Python using a closed interval. I find that inconsistency to be *far* more >jarring than the use of range(). I agree. Jim
- Previous message (by thread): PEP 276 Simple Iterator for ints
- Next message (by thread): PEP 276 Simple Iterator for ints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list