Message361480
Example for binary representation:
>>> x = 123456
>>> print("{:,b}".format(x))
Traceback (most recent call last):
File "<pyshell#261>", line 1, in <module>
print("{:,b}".format(x))
ValueError: Cannot specify ',' with 'b'.
Why? Comma work only with decimals?
But '_' groups delimiter properly work with any integer representation including decimals, hexadecimals, binaries, octals, etc.. |
|
Date |
User |
Action |
Args |
2020-02-06 12:56:25 | Another One | set | recipients:
+ Another One |
2020-02-06 12:56:25 | Another One | set | messageid: <1580993785.28.0.694930470564.issue39568@roundup.psfhosted.org> |
2020-02-06 12:56:25 | Another One | link | issue39568 messages |
2020-02-06 12:56:25 | Another One | create | |
|