Comment #2 on issue 1946 by asmeurer: Recursion error with
SYMPY_GROUND_TYPES=sympy (caching problem)
http://code.google.com/p/sympy/issues/detail?id=1946
I don't think so. Add this print statement and run the test:
diff --git a/sympy/polys/galoistools.py b/sympy/polys/galoistools.py
index c017181..13dc8bd 100644
--- a/sympy/polys/galoistools.py
+++ b/sympy/polys/galoistools.py
@@ -479,6 +479,7 @@ def gf_mul(f, g, p, K):
coeff = K.zero
for j in xrange(max(0, i-dg), min(i, df)+1):
+ print type(coeff.p), type((f[j]*g[i-j]).p)
coeff += f[j]*g[i-j]
h[i] = coeff % p
The last line before the error is "<type 'long'> <type 'long'>". Based on
the traceback, the "other =
_sympy(other)" line in Rational.__eq__() is responsible for converting it
to an Integer. Or did you see it
somewhere else?
Anyway, I still get the error in your Singleton-class branch, with a
slightly different traceback.
--
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.