[issue21408] delegation of `!=` to the right-hand side argument is not always done

Martin Panter report at bugs.python.org
Sun Jan 11 07:39:42 CET 2015


Martin Panter added the comment:

This patch should fix the problem I think. Before the __ne__() implementation was calling the “==” operator; now it calls the __eq__() method instead.

Also includes extra test for Issue 4395 to avoid having conficting patches.

----------
keywords: +patch
Added file: http://bugs.python.org/file37672/method-not-operator.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21408>
_______________________________________


More information about the Python-bugs-list mailing list