This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients georg.brandl, nevsan, serhiy.storchaka
Date 2017-03-22.11:56:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490183816.49.0.20262052361.issue29869@psf.upfronthosting.co.za>
In-reply-to
Content
Python uses more strong rules for underscores in numerical literals. Underscores are acceptable between digits and between the base prefix and digit. For example the regular expression for hexadecimals is r'0[xX]_?[\da-fA-F]+(?:_[\da-fA-F]+)*[lL]?'.

Underscores also are acceptable in the exponent of float literals:

Exponent = r'[eE][-+]?\d+(?:_\d+)*'
History
Date User Action Args
2017-03-22 11:56:56serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, nevsan
2017-03-22 11:56:56serhiy.storchakasetmessageid: <1490183816.49.0.20262052361.issue29869@psf.upfronthosting.co.za>
2017-03-22 11:56:56serhiy.storchakalinkissue29869 messages
2017-03-22 11:56:56serhiy.storchakacreate