Message376358
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? |
|
Date |
User |
Action |
Args |
2020-09-04 11:47:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, eric.snow, yetingli |
2020-09-04 11:47:11 | serhiy.storchaka | set | messageid: <1599220031.55.0.265463772564.issue41715@roundup.psfhosted.org> |
2020-09-04 11:47:11 | serhiy.storchaka | link | issue41715 messages |
2020-09-04 11:47:11 | serhiy.storchaka | create | |
|