PEP 276 Simple Iterator for ints

James_Althoff at i2.com James_Althoff at i2.com
Thu Nov 15 14:29:43 EST 2001


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





More information about the Python-list mailing list