Leaklens

sympy__sympy-18057

Sympy incorrectly attempts to eval reprs in its __eq__ method

Verdict: the fix is stated in the issue (Tier A).

Safe flag or no, == should call _sympify since an expression shouldn't equal a string.

The text states the fix: “Safe flag or no, == should call _sympify since an expression shouldn't equal a string.”

All SWE-bench Lite tasks · more sympy/sympy tasks · How the check works