Skip to content

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

Closed
@skirpichev

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

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