New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circularity in assumptions of products #9413

jksuom opened this Issue May 20, 2015 · 1 comment


None yet
2 participants
Copy link

jksuom commented May 20, 2015

Running (2*z).is_complex with SYMPY_USE_CACHE=no leads to

RuntimeError: maximum recursion depth exceeded

This also happens with other assumptions (except is_commutative).


This comment has been minimized.

Copy link

toolforger commented May 20, 2015

There are several bugs like that; we neglected to run the test suite with caching off (because it is ultra-slow), and infinite recursion issues started to slip in.
We discussed whether we should simply require that the cache be always on, or fix things so that they work without cache (that would mean making the test suite work without caching, and add a test run for that on Travis).
@asmeurer @certik opinions?

@jcrist jcrist closed this in #9421 May 27, 2015

skirpichev added a commit to diofant/diofant that referenced this issue Oct 2, 2015

Fix infinite recursions when caching is disabled
Refactor some assumptions helpers for Mul to reduce circularity.
Fixes sympy/sympy#8840, fixes sympy/sympy#9413, fixes sin(x + x).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment