Message362132
| 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: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 |
|