[issue26743] Unable to import random with python2.7 on power pc based machine

STINNER Victor report at bugs.python.org
Wed Apr 13 20:45:12 EDT 2016


STINNER Victor added the comment:

>>> print math.sqrt(2.0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: math domain error

I'm surprised that such basic math function fails.

Can you please try to compile and run attached C program?

$ gcc sqrt.c -o sqrt -lm && ./sqrt
sqrt(2) = 1.41421

----------
nosy: +haypo
Added file: http://bugs.python.org/file42459/sqrt.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26743>
_______________________________________


More information about the Python-bugs-list mailing list