Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium
New issue 2076 by smichr: intcache error
http://code.google.com/p/sympy/issues/detail?id=2076
The following throws an intcache error:
h[4] >>> V=114034188
h[4] >>> a=77791786
h[4] >>> n=factorial(6)*nextprime(1001)*nextprime(200)
h[4] >>> F=lambda x,y,z:(x**2+y)%z
h[4] >>> F(F(V,a,n),a,n)
I don't understand the problem. If do a single call (the inner one) I don't
get the error. But if I take the output of that inner call (45899530) and
set that to V and do this:
V = 45899530
F(V,a,n),a,n
I get the error in master:
.
.
.
File "sympy\core\numbers.py", line 918, in __eq__
return Rational.__eq__(a, b)
File "sympy\core\numbers.py", line 667, in __eq__
other = _sympify(other)
File "sympy\core\sympify.py", line 152, in _sympify
return sympify(a, strict=True)
File "sympy\core\sympify.py", line 80, in sympify
return converter[cls](a)
File "sympy\core\numbers.py", line 828, in __new__
return _intcache[i]
RuntimeError: maximum recursion depth exceeded
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.