Skip to content

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

Description

@skirpichev

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

Activity

  1. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    type-bugAn unexpected behavior, bug, or error
    on Mar 5, 2025
  2. self-assigned this
    on Mar 5, 2025
  3. added a commit that references this issue on Mar 5, 2025
  4. removed their assignment
    on Mar 5, 2025
  5. added a commit that references this issue on Mar 5, 2025
  6. added a commit that references this issue on Mar 6, 2025
  7. skirpichev commented on Mar 10, 2025

    @skirpichev
    MemberAuthor

    fixed by 2352bd4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions