Underscores in Python numbers

Gustav Hållberg gustav at gmail.com
Mon Nov 7 21:02:09 EST 2005


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.

- Gustav




More information about the Python-list mailing list