[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

Chris Angelico report at bugs.python.org
Fri Aug 19 09:52:32 EDT 2016


Chris Angelico added the comment:

Hmm, strange. Comma formatting never seems to have had tests added. So I've added a couple of simple tests of comma formatting at the same time as adding underscore formatting tests. Also, test_long.py currently has a comment "# octal" preceding a bunch of tests of *binary* formatting, and no tests of octal. So I've added those too.

In any case, here's a patch with full functionality and tests.

----------
Added file: http://bugs.python.org/file44154/underscores_with_tests.patch

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


More information about the Python-bugs-list mailing list