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 scoder
Recipients ethan.furman, georg.brandl, mark.dickinson, petr.viktorin, rhettinger, scoder, serhiy.storchaka, skrah, yselivanov
Date 2016-03-19.10:38:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458383914.19.0.303581669379.issue26331@psf.upfronthosting.co.za>
In-reply-to
Content
Nice one. While reimplementing it for Cython, I noticed that the grammar described in the PEP isn't exactly as it's implemented, though. The grammar says

    digit (["_"] digit)*

whereas the latest patch (v4) says

    `digit` (`digit` | "_")*

and also implements it that way. The former doesn't allow underscores at the end of a literal.

And the regexes in tokenize.py seem happy to accept "0x___", for example. Is that intended?
History
Date User Action Args
2016-03-19 10:38:34scodersetrecipients: + scoder, georg.brandl, rhettinger, mark.dickinson, petr.viktorin, skrah, ethan.furman, serhiy.storchaka, yselivanov
2016-03-19 10:38:34scodersetmessageid: <1458383914.19.0.303581669379.issue26331@psf.upfronthosting.co.za>
2016-03-19 10:38:34scoderlinkissue26331 messages
2016-03-19 10:38:33scodercreate