This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, ncoghlan
Date 2018-01-30.04:45:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517287529.39.0.467229070634.issue32720@psf.upfronthosting.co.za>
In-reply-to
Content
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+"
History
Date User Action Args
2018-01-30 04:45:29ncoghlansetrecipients: + ncoghlan, docs@python
2018-01-30 04:45:29ncoghlansetmessageid: <1517287529.39.0.467229070634.issue32720@psf.upfronthosting.co.za>
2018-01-30 04:45:29ncoghlanlinkissue32720 messages
2018-01-30 04:45:29ncoghlancreate