bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119) · MatthewPlemmons/cpython@a6e395d · GitHub
Skip to content

Commit a6e395d

Browse files
nevsanMariatta
authored andcommitted
bpo-29869: Allow underscores in numeric literals in lib2to3. (pythonGH-1119)
* Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3.
1 parent 873ef20 commit a6e395d

2 files changed

Lines changed: 30 additions & 8 deletions

File tree

Lib/lib2to3/pgen2/tokenize.py

Lines changed: 8 additions & 8 deletions

Lib/lib2to3/tests/data/py3_test_grammar.py

Lines changed: 22 additions & 0 deletions

0 commit comments

Comments
 (0)