
[[fill]align][sign][#][0][width][grouping_option][.precision][#|$][type] Could not distinguish the first and second #: everything between them is optional. Eric On 12/20/2019 7:13 AM, Michael Amrhein wrote:
Eric V. Smith wrote: ...
The current specification for the format spec is: [[fill]align][sign][#][0][width][grouping_option][.precision][type] Let's say we change it to: [[fill]align][sign][#][*|$][0][width][grouping_option][.precision][type] ... Let's call the new [*|$] character the "locale character". +1
I'm not married to '*' for LC_NUMERIC, although I think '$' makes sense for LC_MONETARY. If the "locale character" would be placed behind (or just infront of) the type, it would be possible to use '#' instead of '*' as modifier, which - for my taste - is a better fit for LC_NUMERIC .
Syntax would be [[fill]align][sign][#][0][width][grouping_option][.precision][type][#|$] or [[fill]align][sign][#][0][width][grouping_option][.precision][#|$][type]
Michael _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/G7RBWD... Code of Conduct: http://python.org/psf/codeofconduct/