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 passing invalid command line args (directory(ies) instead of file(s)) #47823
Passing a single directory as a command line argument can make IDLE hang.
To achieve this the user needs to configure IDLE to open an editor
window by default.
The attached patch discards filenames that failed to load, so in the end
it may open an empty editor window instead of hanging.
Idle has changed a bit since the initial message, so it no longer hangs
when it is configured to open an edit window by default, but now it
hangs when running it as: idle -e <somedirnamehere> (which the patch fixes).
Thanks for applying.
Just note that unlike with svn, with hg it is stronly recommended to apply to 3.2 first and forward port to 3.3. Something about the DAGs working better.
with hg it is stronly recommended to apply to 3.2 first and forward port to 3.3.
Something about the DAGs working better.
The default branch (3.3) is a superset of 3.2: all bug fixes are in both branches, and new features are in 3.3 only. We’ve chosen the simplest way to achieve that with Mercurial: we commit to 3.2 and merge into default. This ensures that no fix committed to one version is forgotten in the other, and also automates the file merging. That’s just it.
Activity
gpolo commentedon Aug 16, 2008
Passing a single directory as a command line argument can make IDLE hang.
To achieve this the user needs to configure IDLE to open an editor
window by default.
The attached patch discards filenames that failed to load, so in the end
it may open an empty editor window instead of hanging.
gpolo commentedon Jun 6, 2009
Idle has changed a bit since the initial message, so it no longer hangs
when it is configured to open an edit window by default, but now it
hangs when running it as: idle -e <somedirnamehere> (which the patch fixes).
BreamoreBoy commentedon Jul 18, 2010
Please refer to msg89022.
serwy commentedon Nov 29, 2011
I can confirm that using "idle -e <dir>" still causes a hang on Windows using 3.2.2 and on Ubuntu using 2.7.1 and 3.2
The given patch fixes the problem on those platforms.
python-dev commentedon Mar 20, 2012
New changeset 01404295138d by Andrew Svetlov in branch 'default':
bpo-3573: idle now doesn't hungs if launched as: idle -e <directory>
http://hg.python.org/cpython/rev/01404295138d
asvetlov commentedon Mar 20, 2012
Fixed. Thanks to Guilherme Polo and Roger Serwy.
python-dev commentedon Mar 21, 2012
New changeset a95b19b3b4cd by Andrew Svetlov in branch '3.2':
bpo-3573: idle now doesn't hungs if launched as: idle -e <directory>
http://hg.python.org/cpython/rev/a95b19b3b4cd
New changeset cdcd1f7f0882 by Andrew Svetlov in branch 'default':
Merge from 3.2 for issue bpo-3573, fix Misc/NEWS as Ned Deily guess.
http://hg.python.org/cpython/rev/cdcd1f7f0882
python-dev commentedon Mar 21, 2012
New changeset a9be863e5734 by Andrew Svetlov in branch '2.7':
bpo-3573: idle now doesn't hungs if launched as: idle -e <directory>
http://hg.python.org/cpython/rev/a9be863e5734
asvetlov commentedon Mar 21, 2012
Backported to 3.2 and 2.7
terryjreedy commentedon Mar 21, 2012
Thanks for applying.
Just note that unlike with svn, with hg it is stronly recommended to apply to 3.2 first and forward port to 3.3. Something about the DAGs working better.
asvetlov commentedon Mar 21, 2012
Will do in next time.
Thank you for instructions.
merwok commentedon Mar 21, 2012
3-22 00:26
The default branch (3.3) is a superset of 3.2: all bug fixes are in both branches, and new features are in 3.3 only. We’ve chosen the simplest way to achieve that with Mercurial: we commit to 3.2 and merge into default. This ensures that no fix committed to one version is forgotten in the other, and also automates the file merging. That’s just it.
merwok commentedon Mar 21, 2012
(Edited for typos, ignore the “3-22 00:26” that comes from I don’t know where)