Message362132
I reopen the issue to discuss the non-ASCII identifiers.
Currently, the code uses [a-z_]\w*, but "é" is a valid Python module name for example:
$ echo 'print("here")' > é.py
$ python3 -c 'import é'
here
I'm not sure how to design the regex. I just reported a potential issue ;-) See the PEP 3131 and str.isidentifier() method:
https://docs.python.org/dev/library/stdtypes.html#str.isidentifier |
|
Date |
User |
Action |
Args |
2020-02-17 09:46:33 | vstinner | set | recipients:
+ vstinner, terry.reedy, vinay.sajip, ncoghlan, ezio.melotti, eric.araujo, Trundle, meador.inge, daniel.urban, python-dev, eric.snow, berker.peksag, yselivanov |
2020-02-17 09:46:33 | vstinner | set | messageid: <1581932793.6.0.908311865843.issue12915@roundup.psfhosted.org> |
2020-02-17 09:46:33 | vstinner | link | issue12915 messages |
2020-02-17 09:46:33 | vstinner | create | |
|