[Python-ideas] 1_000_000

Matt Chaput matt at whoosh.ca
Fri May 6 19:51:24 CEST 2011


Not sure if this has been proposed before: A syntax change to allow 
underscores as thousands separators in literal numbers to improve 
readability, e.g.:

   for i in range(1, 1_000_000):
     pass

I believe D allows this and while it's a small thing it really is much 
more readable.

Worth a PEP?

Thanks,

Matt



More information about the Python-ideas mailing list