[EMAIL PROTECTED] wrote:

> Why is it that a membership test needs to call the __cmp__ method?

because the membership test has to check if the tested item is a member
of the sequence. if it doesn't do that, it's hardly qualifies as a membership
test.  from the reference manual:

    For the list and tuple types, x in y is true if and only if there exists an
    index i such that x == y[i] is true.

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to