[issue26331] Tokenizer: allow underscores for grouping in numeric literals

Serhiy Storchaka report at bugs.python.org
Wed Feb 10 13:25:53 EST 2016


Serhiy Storchaka added the comment:

I prefer simpler and more strict rule:

* Underscores are allowed only between digits in numeric literals.

Thus 1__2, 12_, 1_.2, 1_e2, 1e_2, 1_j, 0x_12 are not allowed.

It is easier to make the rule more lenient later if it will be needed.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list