[issue35638] Introduce fixed point locale aware format type for floating point numbers

Łukasz Stelmach report at bugs.python.org
Thu Jan 3 08:59:32 EST 2019


Łukasz Stelmach <steelman at post.pl> added the comment:

> I haven't looked at this closely yet, but you'll need to at least:
> - add tests that the locale-aware formatting is happening

Done.

> - support decimal
> - make sure it works with complex

Good points. Done. Please note, that there is an inconsistency between float/complex/int/_pydecimal(!) and decimal. The former provide only 'n' format type and the latter provides 'n' and 'N'. So I implemented 'm' and 'M' for decimal and 'm' for _pydecimal.

> (which it probably does, but needs a test)

There are no tests for 'n'. Should I create for both 'm' and 'n'?

> And, I think we'll need to run this through python-ideas first. One thing I expect to come up there: why f and not g?

Because 'g' has been already covered with 'n'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35638>
_______________________________________


More information about the Python-bugs-list mailing list