On Thu, Dec 6, 2012 at 11:03 PM, INADA Naoki <songofaca...@gmail.com> wrote:
> The reference says:
>
>   The truth of x==y does not imply that x!=y is false.
>   Accordingly, when defining __eq__(), one should also
>   define __ne__() so that the operators will behave as expected.
>
> (http://docs.python.org/3/reference/datamodel.html#object.__eq__)
>
> But I saw different behavior on 3.3:
> https://gist.github.com/4231096
>
> Could anyone teach me what happen about my code?

http://docs.python.org/3/whatsnew/3.0.html#operators-and-special-methods

I can't find it documented anywhere else.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to