-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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-123560: correct docs for "empty" format type for floats #123561
Conversation
I'll have a look at it tomorrow afternoon or in the week-end. I need to read your issue as well. |
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.
LGTM.
I can see differences:
>>> format(1.0, '') # at least one digit past dot
'1.0'
>>> format(1.0, 'g')
'1'
>>> format(1.2345e10, '')
'12345000000.0'
>>> format(1.2345e10, 'g')
'1.2345e+10'
Thanks @skirpichev for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…honGH-123561) (cherry picked from commit 274d9ab) Co-authored-by: Sergey B Kirpichev <[email protected]>
GH-124596 is a backport of this pull request to the 3.13 branch. |
…honGH-123561) (cherry picked from commit 274d9ab) Co-authored-by: Sergey B Kirpichev <[email protected]>
GH-124597 is a backport of this pull request to the 3.12 branch. |
Merged. Thanks @skirpichev and @picnixz. |
📚 Documentation preview 📚: https://cpython-previews--123561.org.readthedocs.build/