[issue29395] Edit with IDLE 3.6 don´t work if Name of File "code.py"

Steve Dower report at bugs.python.org
Fri Feb 3 13:49:30 EST 2017


Steve Dower added the comment:

I assume this is because Idle is doing "import code" somewhere and picking up your file instead of the real one.

Renaming the file to not conflict with the standard library is an immediate workaround, but perhaps Idle should do some sys.path protection around wherever it's importing that module.

----------
nosy: +steve.dower

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29395>
_______________________________________


More information about the Python-bugs-list mailing list