diff --git a/sumpy/kernel.py b/sumpy/kernel.py index 48a7548197da92681760946245a1117cf29136fb..6f55351934b751dec61bff136c10a520ebd2f0f6 100644 --- a/sumpy/kernel.py +++ b/sumpy/kernel.py @@ -100,6 +100,10 @@ class KernelArgument(object): return NotImplemented return self.loopy_arg == other.loopy_arg + def __neq__(self, other): + # Needed for python2 + return not self == other + def __hash__(self): return (type(self), self.loopy_arg)