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

Stefan Behnel report at bugs.python.org
Sat Mar 19 11:07:20 EDT 2016


Stefan Behnel added the comment:

Ah, thanks. Here's my implementation then:

https://github.com/cython/cython/pull/499/files

It seems that tests for valid complex literals are missing. I've added these to the end of the list:

    '1_00_00.5j',
    '1_00_00.5e5',
    '1_00_00j',
    '1_00_00e5_1',
    '1e1_0',
    '.1_4',
    '.1_4e1',
    '.1_4j',

----------

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


More information about the Python-bugs-list mailing list