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 mark.dickinson
Recipients eric.smith, mark.dickinson
Date 2009-05-03.15:27:11
SpamBayes Score 8.6286533e-13
Marked as misclassified No
Message-id <1241364435.9.0.132810257571.issue5914@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch that adds a PyOS_string_to_double function to complement 
the recently added PyOS_double_to_string function.

This is supposed to be a more Pythonic version of PyOS_ascii_strtod.  It 
raises Python exceptions to correspond to the various possible errors 
(malformed string, overflowing number, malloc failure...) instead of 
requiring the caller to examine errno.

It's intended for both internal and external use;  if this goes in, I 
intend to use it in the Python core in places where PyOS_ascii_strtod or 
PyOS_ascii_atof are currently used.
History
Date User Action Args
2009-05-03 15:27:15mark.dickinsonsetrecipients: + mark.dickinson, eric.smith
2009-05-03 15:27:15mark.dickinsonsetmessageid: <1241364435.9.0.132810257571.issue5914@psf.upfronthosting.co.za>
2009-05-03 15:27:14mark.dickinsonlinkissue5914 messages
2009-05-03 15:27:13mark.dickinsoncreate