Author vstinner
Recipients Trundle, berker.peksag, daniel.urban, eric.araujo, eric.snow, ezio.melotti, meador.inge, ncoghlan, python-dev, terry.reedy, vinay.sajip, vstinner, yselivanov
Date 2020-02-17.09:46:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581932793.6.0.908311865843.issue12915@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-02-17 09:46:33vstinnersetrecipients: + 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:33vstinnersetmessageid: <1581932793.6.0.908311865843.issue12915@roundup.psfhosted.org>
2020-02-17 09:46:33vstinnerlinkissue12915 messages
2020-02-17 09:46:33vstinnercreate