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 ronaldoussoren
Recipients
Date 2006-05-27.18:34:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=580910

This could quite easily be fixed by testing for NaN in PyLong_FromDouble, such 
as the attached patch. This works correctly on OSX, but I have no idea if this will 
work on other platforms, that depends on how portable the already existing 
Py_IS_NAN macro is.  C99 also introduces an fpclassify and isnan functions that 
could be used (Py_IS_NAN uses neither because Python is written in C89 instead 
of C99).
History
Date User Action Args
2007-08-23 14:39:47adminlinkissue1481296 messages
2007-08-23 14:39:47admincreate