-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PyOS_string_to_double function to C API #50164
Comments
Here's a patch that adds a PyOS_string_to_double function to complement This is supposed to be a more Pythonic version of PyOS_ascii_strtod. It It's intended for both internal and external use; if this goes in, I |
This looks okay to me (although since it's not hooked up I haven't Does the whitespace change cause any problems for any internal code? I As long as you're at it, I'd suggest deprecating PyOS_ascii_*. |
Thanks for the feedback! Here's an updated patch that also deprecates PyOS_ascii_strtod and |
This looks okay to me, and passes the tests. In PyOS_string_to_double, you can simplify it by using PyErr_Format |
Thanks. I've committed a version of this patch, with Eric's suggested |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: