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 eric.snow, serhiy.storchaka, yetingli
Date 2020-09-04.11:47:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599220031.55.0.265463772564.issue41715@roundup.psfhosted.org>
In-reply-to
Content
I would use

   NAME_RE = re.compile(r'(?![_\d]+\Z)(?!\d)\w+', re.ASCII)

or

   NAME_RE = re.compile(r'(?=.*[A-Za-z])(?!\d)\w+', re.ASCII)

and NAME_RE.fullmatch() instead of NAME_RE.match().

But why identifiers not containing letters are disabled at first place? Is _123 an invalid identifier in C?
History
Date User Action Args
2020-09-04 11:47:11serhiy.storchakasetrecipients: + serhiy.storchaka, eric.snow, yetingli
2020-09-04 11:47:11serhiy.storchakasetmessageid: <1599220031.55.0.265463772564.issue41715@roundup.psfhosted.org>
2020-09-04 11:47:11serhiy.storchakalinkissue41715 messages
2020-09-04 11:47:11serhiy.storchakacreate