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 <1455126624.48.0.163167904941.issue26331@psf.upfronthosting.co.za>
In-reply-to
Content
As discussed on python-ideas: https://mail.python.org/pipermail/python-ideas/2016-February/038354.html

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?
History
Date User Action Args
2016-02-10 17:50:25georg.brandlsetrecipients: + georg.brandl
2016-02-10 17:50:24georg.brandlsetmessageid: <1455126624.48.0.163167904941.issue26331@psf.upfronthosting.co.za>
2016-02-10 17:50:24georg.brandllinkissue26331 messages
2016-02-10 17:50:24georg.brandlcreate