Skip to content

Commit 15b7028

Browse files
authored
Merge pull request #116 from mattwala/sympy-rel-global-import
Basic._richcmp_(): Make Rel import global, not inline.
2 parents cab8921 + 9258e75 commit 15b7028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,12 @@ cdef class Basic(object):
462462
return Basic._richcmp_(A, B, op)
463463

464464
def _richcmp_(Basic A, Basic B, int op):
465-
from sympy import Rel
466465
if (op == 2):
467466
return symengine.eq(deref(A.thisptr), deref(B.thisptr))
468467
elif (op == 3):
469468
return symengine.neq(deref(A.thisptr), deref(B.thisptr))
470-
elif (op == 0):
469+
from sympy import Rel
470+
if (op == 0):
471471
return Rel(A, B, '<')
472472
elif (op == 1):
473473
return Rel(A, B, '<=')

0 commit comments

Comments
 (0)