Message304330
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 |
|
Date |
User |
Action |
Args |
2017-10-13 11:36:56 | FHTMitchell | set | recipients:
+ FHTMitchell |
2017-10-13 11:36:55 | FHTMitchell | set | messageid: <1507894615.97.0.213398074469.issue31780@psf.upfronthosting.co.za> |
2017-10-13 11:36:55 | FHTMitchell | link | issue31780 messages |
2017-10-13 11:36:55 | FHTMitchell | create | |
|