]> git.madduck.net Git - etc/vim.git/blob - tests/data/numeric_literals_skip_underscores.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Use g:pymode_python-defined interpreter if defined and exists, otherwise use existing...
[etc/vim.git] / tests / data / numeric_literals_skip_underscores.py
1 #!/usr/bin/env python3.6
2
3 x = 123456789
4 x = 1_2_3_4_5_6_7
5 x = 1E+1
6 x = 0xb1acc
7 x = 0.00_00_006
8 x = 12_34_567J
9 x = .1_2
10 x = 1_2.
11
12 # output
13
14 #!/usr/bin/env python3.6
15
16 x = 123456789
17 x = 1_2_3_4_5_6_7
18 x = 1e1
19 x = 0xB1ACC
20 x = 0.00_00_006
21 x = 12_34_567j
22 x = 0.1_2
23 x = 1_2.0