On 7/31/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> You missed it -- it should definitely be equivalent to
>     4 in list(range(0, 10, 3))
> i.e.
>     4 in [0, 4, 8]

An then, as list/tuple __contains__ is implemented in terms of rich
comparison (with Py_EQ), perhaps a patch is not so easy to be
implemented, at first it do not seems to be as trivial as previously
suggested in this thread.

-- 
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