[issue25522] IDLE: warn if save-as name matches stdlib name
Terry J. Reedy
report at bugs.python.org
Fri Jan 18 01:35:38 EST 2019
Terry J. Reedy <tjreedy at 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 <report at bugs.python.org>
<https://bugs.python.org/issue25522>
_______________________________________
More information about the Python-bugs-list
mailing list