Is __ne__ method autogenerated?

Ian Kelly ian.g.kelly at
Fri Dec 7 07:37:42 CET 2012

On Thu, Dec 6, 2012 at 11:03 PM, INADA Naoki <songofacandy at> 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.
> (
> But I saw different behavior on 3.3:
> Could anyone teach me what happen about my code?

I can't find it documented anywhere else.

More information about the Python-list mailing list