Scholes C added the comment: 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 ---------- nosy: +Scholes.C _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21167> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com