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 cdavid
Recipients cdavid, christian.heimes, mark.dickinson
Date 2008-12-31.07:41:49
SpamBayes Score 0.00032344842
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
I started a patch against the trunk to handle nan/inf/infinite (I have
not yet tackled the problem of negative zero).

The patch is a bit big, because I found the function quite difficult to
follow, so I refactored it a bit first (replacing the state machine with
the big switch with a sequential parsing). One potential problem is that
I do some computation with inf to make signed infinite, I don't know if
it is safe. I don't know is setting a variable to Nan is safe either.

Although I tested the function in a simple main under valgrind for
various legit and bogus input, there is no tests in this patch. I would
like to add some, but I am not familiar with python testing, so I would
be glad to receive some indications on how to do it properly.
History
Date User Action Args
2008-12-31 07:41:57cdavidsetrecipients: + cdavid, mark.dickinson, christian.heimes
2008-12-31 07:41:56cdavidsetmessageid: <[email protected]>
2008-12-31 07:41:56cdavidlinkissue2121 messages
2008-12-31 07:41:54cdavidcreate