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 7f82174 commit f9124f4Copy full SHA for f9124f4
tests/snippets/literals.py
@@ -0,0 +1,8 @@
1
+# Integer literals
2
+assert 0b101010 == 42
3
+assert 0B101010 == 42
4
+assert 0o777 == 511
5
+assert 0O777 == 511
6
+assert 0xcafebabe == 3405691582
7
+assert 0Xcafebabe == 3405691582
8
+assert 0xCAFEBABE == 3405691582
0 commit comments