Message87048
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. |
|
Date |
User |
Action |
Args |
2009-05-03 15:27:15 | mark.dickinson | set | recipients:
+ mark.dickinson, eric.smith |
2009-05-03 15:27:15 | mark.dickinson | set | messageid: <1241364435.9.0.132810257571.issue5914@psf.upfronthosting.co.za> |
2009-05-03 15:27:14 | mark.dickinson | link | issue5914 messages |
2009-05-03 15:27:13 | mark.dickinson | create | |
|