Message311229
I just noticed that https://docs.python.org/3/library/string.html#formatspec links to the "integer" definition in the main Python grammar for the permitted format of numeric fields.
This isn't accurate:
```
>>> format(10e4, ",.2f")
'100,000.00'
>>> format(10e4, ",.0x2f")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier
>>> format(10e4, ",.2_2f")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier
```
Instead, the `width` and `precision` subfields should be defined as "digit+" |
|
Date |
User |
Action |
Args |
2018-01-30 04:45:29 | ncoghlan | set | recipients:
+ ncoghlan, docs@python |
2018-01-30 04:45:29 | ncoghlan | set | messageid: <1517287529.39.0.467229070634.issue32720@psf.upfronthosting.co.za> |
2018-01-30 04:45:29 | ncoghlan | link | issue32720 messages |
2018-01-30 04:45:29 | ncoghlan | create | |
|