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 FHTMitchell
Recipients FHTMitchell
Date 2017-10-13.11:36:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507894615.97.0.213398074469.issue31780@psf.upfronthosting.co.za>
In-reply-to
Content
Minor issue. Using the ',b', ',o' or ',x' raises the error

ValueError("Cannot specify ',' or '_' with 'x'.",)

(or equivalently for 'b' and 'o'). However, it is possible to use the format specs '_b', '_o' and '_x' in Python 3.6 due to PEP 515. 

The following test demonstrates this:

>>> i = 10000
>>> for base in 'box':
...     for sep in ',_':
...         try:
...             print(f'{i:{sep}{base}}')
...         except ValueError as err:
...             print(repr(err))

ValueError("Cannot specify ',' or '_' with 'b'.",)
1_1000_0110_1010_0000
ValueError("Cannot specify ',' or '_' with 'o'.",)
30_3240
ValueError("Cannot specify ',' or '_' with 'x'.",)
1_86a0
History
Date User Action Args
2017-10-13 11:36:56FHTMitchellsetrecipients: + FHTMitchell
2017-10-13 11:36:55FHTMitchellsetmessageid: <1507894615.97.0.213398074469.issue31780@psf.upfronthosting.co.za>
2017-10-13 11:36:55FHTMitchelllinkissue31780 messages
2017-10-13 11:36:55FHTMitchellcreate