On Thu, 25 Oct 2007 15:40:00 +0900, Michael Ulm wrote:
> If there is only one kind of range to be supported (which I
> understand to be in sync with the Python philosophy), I agree that
> half-open intervals are the way to go.

For iterating, I agree.

But for case expressions, I prefer the interval to be inclusive.
Example from the pickaxe book:

  kind = case year
         when 1850..1889 then "Blues"
         when 1890..1909 then "Ragtime"
         when 1910..1929 then "New Orleans Jazz"
         when 1930..1939 then "Swing"
         when 1940..1950 then "Bebop"
         else                 "Jazz"
       end

/gordon

--