[issue12915] Add inspect.locate and inspect.resolve
STINNER Victor
report at bugs.python.org
Mon Feb 17 04:46:33 EST 2020
STINNER Victor <vstinner at python.org> 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 <report at bugs.python.org>
<https://bugs.python.org/issue12915>
_______________________________________
More information about the Python-bugs-list
mailing list