diff --git a/pymbolic/geometric_algebra/__init__.py b/pymbolic/geometric_algebra/__init__.py index d52cdca9d235511dcf8a609a7324134d0361e908..0934410f8e7a067307ca2059fbfa8eaa2c7bf3a5 100644 --- a/pymbolic/geometric_algebra/__init__.py +++ b/pymbolic/geometric_algebra/__init__.py @@ -897,9 +897,11 @@ class MultiVector(object): return result - def __nonzero__(self): + def __bool__(self): return bool(self.data) + __nonzero__ = __bool__ + def __eq__(self, other): other = _cast_or_ni(other, self.space) if other is NotImplemented: