Skip to content

Commit

Permalink
Merge pull request #303 from isuruf/is
Browse files Browse the repository at this point in the history
Use is instead of == for singletons
  • Loading branch information
isuruf authored Nov 2, 2019
2 parents 7dd26e0 + bce54c6 commit c5e17cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symengine/lib/symengine_wrapper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ def sympy2symengine(a, raise_error=False):
return piecewise(*(a.args))
elif isinstance(a, sympy.Interval):
return interval(*(a.args))
elif a == sympy.S.EmptySet:
elif a is sympy.S.EmptySet:
return emptyset()
elif a == sympy.S.UniversalSet:
elif a is sympy.S.UniversalSet:
return universalset()
elif isinstance(a, sympy.FiniteSet):
return finiteset(*(a.args))
Expand Down

0 comments on commit c5e17cf

Please sign in to comment.