[issue2802] str.format() :n integer output
Eric Smith
report at bugs.python.org
Sun May 11 23:17:57 CEST 2008
Eric Smith <eric at trueblade.com> added the comment:
Implemented in 3.0 as r63093. I'm closing this issue.
I added the C code that does the grouping insertion as
_PyString_InsertThousandsGrouping and _PyUnicode_InsertThousandsGrouping
(in 3.0). This might be useful to others, although the API is fairly
complicated.
Mark Dickinson: For Decimal, you can probably get what you need from
Lib/locale.py, although the function _group() is private.
----------
resolution: -> fixed
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2802>
__________________________________
More information about the Python-bugs-list
mailing list