On 7/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Also, bringing it back more on-topic, what should the value of this
> expression be?
>     4 in range(0, 10, 3)
> That is, are we treating range() as a set or an interval?

IMHO, 'range' is a like a set of integers, not an interval.  For me,
'x in range(...)' sould return the same as 'x in list(range(...))'.


-- 
Lisandro Dalcín
_______________________________________________
Python-3000 mailing list
[email protected]
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