On Thu, Apr 24, 2008 at 1:01 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote:
> It seems to me that there are two reasonable behaviours
> for range(a, b) when b is less than a:  return an 'empty' range,
> as in the example above, or raise a ValueError;

Don't even think about suggesting to change this. It matches the
behavior of slices:

>>> a = 'abc'
>>> a[2:1]
''
>>>

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to