Comment #25 on issue 1262 by [email protected]: fix sympy to work in
python3.0
http://code.google.com/p/sympy/issues/detail?id=1262
I fixed all issues with sympy.polys in
https://github.com/mattpap/sympy/tree/porting. This implied fixing also
lambdify(). One test still fails, lambdify(x, sqrt(x))(-1). This is because
sqrt(x) is printed as x**(1/2) and in Python 3.x:
from math import sqrt
sqrt(-1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: math domain error
(-1)**(1/2)
(6.123031769111886e-17+1j)
(previously it gave ValueError in both cases (assuming new division)). Also
we often assumed that str doesn't have __iter__ attribute. This isn't true
any more in Python 3.x. I fixed lambdify() but this idiom was used in other
places too.
--
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.