We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a35c8f commit ce0b511Copy full SHA for ce0b511
tests/snippets/builtin_format.py
@@ -27,3 +27,4 @@ def test_zero_padding():
27
assert f'{1024:_}' == '1_024'
28
assert f'{65536:,}' == '65,536'
29
assert f'{4294967296:,}' == '4,294,967,296'
30
+assert 'F' == "{0:{base}}".format(15, base="X")
0 commit comments