[Python-ideas] Improve readability of long numeric literals
Manuel CerĂ³n
ceronman at gmail.com
Tue Feb 9 19:22:23 EST 2016
On Wed, Feb 10, 2016 at 12:51 AM, Guido van Rossum <guido at python.org> wrote:
> I don't know what a bank sort code is (maybe a UK thing?)
>
> FWIW there are some edge cases to be decided: is _123 valid? or 123_?
> or 123__456?
>
_123 is a valid identifier name, so no. For consistency, I think the
leading underscore should be out too.
Multiple underscores in the middle might be useful for separating millions
and thousands:
700__000_000
but perhaps it's too much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160210/7c6efc81/attachment.html>
More information about the Python-ideas
mailing list