[issue26331] Tokenizer: allow underscores for grouping in numeric literals

Serhiy Storchaka report at bugs.python.org
Wed Feb 10 15:52:18 EST 2016


Serhiy Storchaka added the comment:

C++14 uses the same strict rule as Ada, but uses apostrphes instead of underscores. [1]

Thus there are two groups of languages, implementing strict or lenient rules:

* Strict: Ada, C++, Java, C#, Ruby, Julia, Perl (as documented), Swift (textual description).
* Lenient: D, Rust, Perl (actually), Swift (grammar productions).

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3499.html

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26331>
_______________________________________


More information about the Python-bugs-list mailing list