Terry J. Reedy <[email protected]> added the comment:
Also check if the name is not an identifier and therefore could not be
imported. Example:
>>> exec('import abc--bb')
import abc--bb
^
SyntaxError: invalid syntax
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue25522>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com