Terry J. Reedy <tjre...@udel.edu> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue25522> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com