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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29395>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to