Comment #6 on issue 1946 by asmeurer: Recursion error with
SYMPY_GROUND_TYPES=sympy (caching problem)
http://code.google.com/p/sympy/issues/detail?id=1946
Ah, you're right. I didn't notice that it was using isinstance instead of
type, which does give such problems:
In [1]: type(S(1)) is Integer
Out[1]: False
In [2]: type(S(2)) is Integer
Out[2]: True
So yes, let's change all of those to "type(b) in (int, long)" (or would
isinstance be better there too?), as well as
your patch from earlier, and add stress tests that would uncover these
problems even in 64-bit platforms.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.