Undocumented handling of thousands separator for floats and differences wrt Decimal #130664
Labels
docs
Documentation in the Doc dir
extension-modules
C modules in the Modules dir
stdlib
Python modules in the Lib dir
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
In docs we have:
But this doesn't specify how separators are inserted for customized alignment, consider:
Probably it's obvious, that separators might be inserted only in case of 0-padding and
=
alignment, though maybe this should be mentioned explicitly.Note also that neither from above supported by Decimal/Fraction, e.g.:
BTW, the rationale for Fraction's behavior (see #100161) is "no special-casing of the particular '0=' fill-character/alignment combination", which is rather weak, IMO.
Either this should be fixed (preferred) or documented.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: