Author christian.heimes
Recipients barry, christian.heimes, gvanrossum, mark.dickinson, mikecurtis, rhettinger
Date 2008-11-11.16:54:00
SpamBayes Score 3.68505e-09
Marked as misclassified No
Message-id <>
The issue with nan -> 0L was fixed in Python 2.6. I can't recall if I
fixed it or somebody else but I know it was discussed.

$ python2.6
>>> long(float("nan"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: cannot convert float NaN to integer
>>> long(float("inf"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: cannot convert float infinity to integer
Date User Action Args
2008-11-11 16:54:01christian.heimessetrecipients: + christian.heimes, gvanrossum, barry, rhettinger, mark.dickinson, mikecurtis
2008-11-11 16:54:00christian.heimessetmessageid: <>
2008-11-11 16:54:00christian.heimeslinkissue4296 messages
2008-11-11 16:54:00christian.heimescreate