
Fixes #452 I ended up making a couple of other normalizations to numeric literals too (lowercase everything, don't allow leading or trailing . in floats, remove redundant + sign in exponent). I don't care too much about those, so I'm happy to change the behavior there. For reference, here is Python's grammar for numeric literals: https://docs.python.org/3/reference/lexical_analysis.html#numeric-literals
13 lines
122 B
Python
13 lines
122 B
Python
#!/usr/bin/env python2.7
|
|
|
|
x = 123456789L
|
|
x = 123456789
|
|
|
|
# output
|
|
|
|
|
|
#!/usr/bin/env python2.7
|
|
|
|
x = 123456789l
|
|
x = 123456789
|