diff --git a/examples/python/bincover.py b/examples/python/bincover.py index d8a81c25a..72b769982 100644 --- a/examples/python/bincover.py +++ b/examples/python/bincover.py @@ -195,7 +195,7 @@ class BinCoverSolver(UserPropagateBase): assert isinstance(value, BitVecNumRef) bin_index = value.as_long() if bin_index >= len(self.bins): - return NOne + return None return self.bins[bin_index] def _add_item2bin(self, item, bin): diff --git a/examples/python/complex/complex.py b/examples/python/complex/complex.py index aa9adeef8..051641808 100644 --- a/examples/python/complex/complex.py +++ b/examples/python/complex/complex.py @@ -81,7 +81,7 @@ class ComplexExpr: other = _to_complex(other) return And(self.r == other.r, self.i == other.i) - def __neq__(self, other): + def __ne__(self, other): return Not(self.__eq__(other)) def simplify(self):