You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idle hangs when given a nonexistent filename. #49235
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-08-13.03:29:28.610>created_at=<Date2009-01-18.05:27:49.095>labels= ['expert-IDLE']
title='Idle hangs when given a nonexistent filename.'updated_at=<Date2009-08-13.03:29:28.608>user='https://bugs.python.org/della1rv'
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.
gpolo commented on Apr 25, 2009
gpolomannequin
Mannequin
More actions
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.
Activity
della1rv commentedon Jan 18, 2009
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.
gpolo commentedon Mar 26, 2009
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.
gpolo commentedon Apr 25, 2009
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.
gpolo commentedon Aug 13, 2009
Closing this in favour of bpo-3573.