[Python-ideas] Improve readability of long numeric literals

Oscar Benjamin oscar.j.benjamin at gmail.com
Tue Feb 9 18:27:38 EST 2016


On 9 Feb 2016 23:18, "Guido van Rossum" <guido at python.org> wrote:
>
> Indeed, "123 456" is a no-no, but "123_456" sound good. (Not sure
> about "12_34_56" but there are probably use cases for that too.)
>

It would be useful for hex literals. There are other more confusing
possibilities such as 1_._0_e_-_1_0.

--
Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160209/53769855/attachment.html>


More information about the Python-ideas mailing list