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 christian.heimes
Recipients barry, christian.heimes, gvanrossum, mark.dickinson, mikecurtis, rhettinger
Date 2008-11-11.16:54:00
SpamBayes Score 3.685049e-09
Marked as misclassified No
Message-id <1226422440.98.0.717293177646.issue4296@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1226422440.98.0.717293177646.issue4296@psf.upfronthosting.co.za>
2008-11-11 16:54:00christian.heimeslinkissue4296 messages
2008-11-11 16:54:00christian.heimescreate