PEP 276 Simple Iterator for ints

James_Althoff at James_Althoff at
Thu Nov 15 20:29:43 CET 2001

Jeff Shannon wrote:
>David Eppstein wrote:
>> You seem to be inconsistent here about whether  you want these ranges to
>> 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.
>syntax cries out to be a closed interval, and it would be very confusing
>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*
>jarring than the use of range().

I agree.


More information about the Python-list mailing list