HaveF / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

math.isnan is not recognized #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. code : 
import math
math.isnan(float('nan'))
2. shedskin -b -e prognan.py
3.

What is the expected output? What do you see instead?
no error is expected 
error with shedskin
[generating c++ code..]
*WARNING* test2_nan.py:2: unresolved call to 'isnan'

What version of the product are you using? On what operating system?
0.9.3 / Linux Ubuntu 12.04

Please provide any additional information below.
math.exp is imported for exemple
nan are supported in the code

Original issue reported on code.google.com by christop...@bordeaux.inra.fr on 30 Aug 2013 at 2:12

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the report! I'll take care of this.

Regards

Original comment by ernestof...@gmail.com on 1 Sep 2013 at 4:14

GoogleCodeExporter commented 9 years ago
This issue has been resolved. The isnan function has been added to the math 
module plus the following missing functions: isinf, acosh, asinh, atanh, 
copysign, erf, erfc, expm1, frexp, gamma, lgamma, log1p, trunc.

Go to gitorious.org/shedskin to get the latest code with the fix.

Original comment by ernestof...@gmail.com on 2 Sep 2013 at 7:35