Message75749
| 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 |
|