-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-95605: Fix float(s)
error message when s
contains only whitespace
#95665
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
gh-95605: Fix float(s)
error message when s
contains only whitespace
#95665
Conversation
@ericvsmith Would you have bandwidth for review, by any chance? I think it's a fairly simple fix. (Indeed, I was sorely tempted to try a more complicated refactoring and cleanup, but I think that's best left for 3.12.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me. Thanks, @mdickinson!
Thanks, @ericvsmith! |
Thanks @mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-95858 is a backport of this pull request to the 3.11 branch. |
GH-95859 is a backport of this pull request to the 3.10 branch. |
…hitespace (pythonGH-95665) This PR fixes the error message from float(s) in the case where s contains only whitespace. (cherry picked from commit 97e9cfa) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
…hitespace (pythonGH-95665) This PR fixes the error message from float(s) in the case where s contains only whitespace. (cherry picked from commit 97e9cfa) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
This PR fixes the error message from
float(s)
in the case wheres
contains only whitespace.Closes #95605.