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 georg.brandl
Recipients georg.brandl
Date 2016-02-10.17:50:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As discussed on python-ideas:

The rules are: 
Underscores are allowed anywhere in numeric literals, except:

* at the beginning of a literal (obviously)
* at the end of a literal
* directly after a dot (since the underscore could start an attribute name)
* directly after a sign in exponents (for consistency with leading signs)
* in the middle of the "0x", "0o" or "0b" base specifiers

Currently this only touches literals, not the inputs of int() or float().  Whether they should accept this syntax is debatable (I'd vote no).

Otherwise missing: doc updates.

Review question: is PyMem_RawStrdup/RawFree the right API to use here?
Date User Action Args
2016-02-10 17:50:25georg.brandlsetrecipients: + georg.brandl
2016-02-10 17:50:24georg.brandlsetmessageid: <>
2016-02-10 17:50:24georg.brandllinkissue26331 messages
2016-02-10 17:50:24georg.brandlcreate