Message28409
Logged In: YES
user_id=31435
Try it on Windows and you'll get:
>>> long(float('nan'))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for float(): nan
Nothing about the behavior of NaNs, infinities, or signed
zeroes is defined or guaranteed by Python. You use them at
your own risk, and their behavior does vary wildly in
practice (according to the HW, OS, C compiler, C library,
and even the C compiler flags specified when compiling Python). |
|
Date |
User |
Action |
Args |
2007-08-23 14:39:47 | admin | link | issue1481296 messages |
2007-08-23 14:39:47 | admin | create | |
|