[issue34311] locale.format() and locale.format_string() cast Decimals to float
James Emerton
report at bugs.python.org
Wed Aug 1 20:48:39 EDT 2018
James Emerton <james at emerton.info> added the comment:
Certainly adding another letter to the format spec would solve my issue and would in fact be somewhat preferable to using local.format directly.
I think this could be fixed in the locale module by transforming the format spec and using new-style formatting, but I'm not familiar enough with the corner cases to know if its practical to cover all the possible cases; particularly those coming from format_string().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34311>
_______________________________________
More information about the Python-bugs-list
mailing list