[issue29869] Underscores in numeric literals not supported in lib2to3.

Nevada Sanchez report at bugs.python.org
Wed Mar 22 10:56:58 EDT 2017


Nevada Sanchez added the comment:

The existing regular expressions weren't actually strict enough as is, so I made them even more correct. In particular, we must have at least one digit following `0[xXbBoO]` and must be before any underscores.

I have a small set of test cases to examine correctness of these regular expressions: https://gist.github.com/nevsan/7fc78dc61d309842406d67d6839b9861

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29869>
_______________________________________


More information about the Python-bugs-list mailing list