Underscores in Python numbers

Peter Hansen peter at engcorp.com
Tue Nov 8 03:19:26 CET 2005


Gustav Hållberg wrote:
> I tried finding a discussion around adding the possibility to have
> optional underscores inside numbers in Python. This is a popular option
> available in several "competing" scripting langauges, that I would love
> to see in Python.
> 
> Examples:
>   1_234_567
>   0xdead_beef
>   3.141_592
> 
> Would appreciate if someone could find a pointer to a previous
> discussion on this topic, or add it to a Python-feature-wishlist.

Perhaps these threads, via Google?

http://groups.google.com/group/comp.lang.python/search?group=comp.lang.python&q=numeric+literals+underscores


-Peter



More information about the Python-list mailing list