<div dir="ltr">Hi everyone!<div><br></div><div>Sometimes it's hard to read long numbers. For example:</div><div><br></div><div>>>> opts.write_buffer_size = 67108864<br></div><div><br></div><div>Some languages (Ruby, Perl, Swift) allow the use of underscores in numeric literals, which are ignored. They are typically used as thousands separators. The example above would look like this:</div><div><br></div><div>>>> opts.write_buffer_size = 67_108_864<br></div><div><br></div><div>Which helps to quickly identify that this is around 67 million.</div><div><br></div><div>Another option is to use spaces instead of underscores:</div><div><br></div><div>>>> opts.write_buffer_size = 67 108 864<br></div><div><br></div><div>This has two advantages: 1. is analog to the way string literals work, which are concatenated if put next to each other. 2. spaces are already used as thousands separator in many european languages [1].</div><div><br></div><div>The disadvantage is that, as far as I known, no other languages do this.</div><div><br></div><div>I have seen some old discussions around this, but nothing on this list or a PEP. With Python being use more and more for scientific and numeric computation, this is a small change that will help with readability a lot. And, as far as I can tell, it doesn't break compatibility in any way.</div><div><br></div><div>Thoughts?</div><div><br></div><div>Manuel.</div><div><br></div><div>[1] <a href="https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html">https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html</a></div></div>