Idle hangs when given the name of a nonexistent file. The idle window briefly appears, then disappears, the process hangs and has to be terminated. Platform: Linux 2.6.22-16-rt #1 SMP PREEMPT RT Mon Nov 24 21:03:25 GMT 2008 i686 GNU/Linux Ubuntu 7.10 Python3.0 Final built from source. tk8.4 I upgraded to tk8.5, idle still does the same thing. To recreate type: rm foo.py idle foo.py # The idle window briefly appears, then disappears, the process hangs # and has to be terminated. In previous versions of idle any nonexistent files would be created by idle. This is what one would expect. I have a patch for idlelib/PyShell.py that will make idle create any nonexisting files.
I tried it here but it didn't hang. But I did notice the editor window was created and then disappeared, differently from what happens in python-trunk. I don't believe creating new files is a good solution, idle on python-trunk doesn't need to do this to work normally.
Ah, retried this bug a bit more and found out that to hang you have to run idle with the -e option and a non-existing filename. Anyway, this was all introduced by r57998.