This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Scholes.C
Recipients Scholes.C, hniksic, jbradaric, mark.dickinson
Date 2015-02-20.00:17:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424391462.09.0.144078026991.issue21167@psf.upfronthosting.co.za>
In-reply-to
Content
HI,
can you please look into this ?
thanks.

icc builds of python 2.7 seem to have issues handling nan, inf, etc

$ /usr/local/python-2.7.6/bin/python
Python 2.7.6 (default, Jan 10 2014, 12:14:02)
[GCC Intel(R) C++ gcc 4.1 mode] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print float('nan')
0.0


$ /usr/local/python-2.6.6-64bit/bin/python
Python 2.6.6 (r266:84292, Oct 14 2010, 15:47:19)
[GCC Intel(R) C++ gcc 4.1 mode] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print float('nan')
nan


I tried both –fp-model strict and –fp-model precise compiler options as suggested by http://bugs.python.org/issue21167, but neither seems to resolve other situations like the one with atan2 below:

$ LD_LIBRARY_PATH=/dat/sharefolder_scratch/python-build ./python
Python 2.7.9 (default, Feb 18 2015, 19:58:37)
[GCC Intel(R) C++ gcc 4.1 mode] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print float('nan')
nan
>>> import math
>>> print math.atan2(0, float('nan'))
0.0

$ /usr/local/python-2.6.6-64bit/bin/python
Python 2.6.6 (r266:84292, Oct 14 2010, 15:47:19)
[GCC Intel(R) C++ gcc 4.1 mode] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> print math.atan2(0, float('nan'))
nan
History
Date User Action Args
2015-02-20 00:17:42Scholes.Csetrecipients: + Scholes.C, mark.dickinson, hniksic, jbradaric
2015-02-20 00:17:42Scholes.Csetmessageid: <1424391462.09.0.144078026991.issue21167@psf.upfronthosting.co.za>
2015-02-20 00:17:42Scholes.Clinkissue21167 messages
2015-02-20 00:17:42Scholes.Ccreate