Lennart Regebro  committed 9f1bf05

Apparently a __ne__ method is necessary, at least under Python 2.4, or you risk having both Distr1 == Distr2 be True, while Distr1 != Distr2 is also True.

  • Participants
  • Parent commits 904277a
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)


             # It's not a Distribution, so they are not equal
             return False
         return self.hashcmp == other.hashcmp
+    def __ne__(self, other):
+        return not self == other
     # These properties have to be lazy so that we don't have to load any
     # metadata until/unless it's actually needed.  (i.e., some distributions