STINNER Victor <[email protected]> added the comment:
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
----------
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue12915>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com