[issue39568] FORMATTING grouping_option ValueError: Cannot specify ', ' with ...

2020-02-06 Thread Another One
Another One added the comment: Not for 3 bits, just for 4 bits, like this: >>> print("{:_b}".format(123456)) 1_1110_0010_0100_ And as I already said: "But '_' groups delimiter properly work with any integer representation including decimals, hexadeci

[issue39568] FORMATTING grouping_option ValueError: Cannot specify ', ' with ...

2020-02-06 Thread Another One
New submission from Another One : Example for binary representation: >>> x = 123456 >>> print("{:,b}".format(x)) Traceback (most recent call last): File "", line 1, in print("{:,b}".format(x)) ValueError: Cannot specify ',' with