Skip to content

Thousands separators in fractional part are ignored in width computation #130860

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

Closed
skirpichev opened this issue Mar 5, 2025 · 1 comment
Closed
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@skirpichev
Copy link
Member

skirpichev commented Mar 5, 2025

Bug report

Bug description:

Examples:

>>> f"{0.1234567891:010.6,f}"  # should be '00.123,457'
'000.123,457'
>>> len(_)
11
>>> f"{0.1234567891:010.7,f}"  # should be '0.123,456,8'
'00.123,456,8'
>>> len(_)
12

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

@skirpichev skirpichev added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Mar 5, 2025
@skirpichev skirpichev self-assigned this Mar 5, 2025
skirpichev added a commit to skirpichev/cpython that referenced this issue Mar 5, 2025
@skirpichev skirpichev removed their assignment Mar 5, 2025
sharktide added a commit to sharktide/cpython that referenced this issue Mar 5, 2025
@skirpichev
Copy link
Member Author

fixed by 2352bd4

seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant