|
From: Michael B. <m...@bu...> - 2014-05-11 21:27:53
|
Hi, There's a difference in behavior between CPython 2.7 and latest jython hg sources: > 0mb@wiggum:~/develop/hg/jython$ python2 -c 'import math; print(math.sqrt(-1.5))' > Traceback (most recent call last): > File "<string>", line 1, in <module> > ValueError: math domain error > 1mb@wiggum:~/develop/hg/jython$ ./dist/bin/jython -c 'import math; print(math.sqrt(-1.5))' > nan Is this expected? This requires workarounds in my code as-is. I would prefer, if jython behavior was changed to match CPython. -- Michael. ---- Please use PGP/GPG encryption. Key-ID: F532BE1D908D8B0E -------- |