[Python-ideas] Improve readability of long numeric literals

Guido van Rossum guido at python.org
Tue Feb 9 18:51:35 EST 2016


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?

On Tue, Feb 9, 2016 at 3:44 PM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
>
>
> On 09/02/2016 23:17, Guido van Rossum 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.)
>
> Looks to me like a bank sort code.  Probably not Guido's, to judge by his
> comment.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/



-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-ideas mailing list