Bugs item #1571112, was opened at 2006-10-05 00:46
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1571112&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 7
Private: No
Submitted By: Douglas W. Goodall (douglas_goodall)
Assigned to: Kurt B. Kaiser (kbk)
Summary: simple moves freeze IDLE

Initial Comment:
Using version 2.5 for Windows...

import os

then type "print os." and wait for the 
hint window. then scroll to the bottom (spawnv).

That's it. At this point IDLE is frozen.

I have done it a few times in a row. It seems
very reproduceable to me.

Be well. Doug

----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2006-12-15 00:15

Message:
Logged In: YES 
user_id=149084
Originator: NO

Rev 53042
Also, it appears that os.__all__ is fixed.  Thanks for the analysis!

----------------------------------------------------------------------

Comment By: Tal Einat (taleinat)
Date: 2006-12-09 12:33

Message:
Logged In: YES 
user_id=1330769
Originator: NO

This cause for this bug is an endless loop in AutoCompleteWindow.py, line
121:

114 selstart = self.completions[cursel]
[snip...]
121 while cursel > 0 and selstart[:i] <= self.completions[cursel-1]:
122     i += 1
123 newstart = selstart[:i]

The case where this loop becomes endless only arises when the same
completion item appears twice in the completions list, thus
self.completions[cursel-1] and self.completions[cursel] are identical.

This happens with the os module because spawnv and spawnve appear twice in
os.__all__.

Solution:
1) Fix the potentially endless loop (add a bound for i)
2) Remove identical completion items from the completions list (its a bug
anyways)

----------------------------------------------------------------------

Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2006-10-08 13:47

Message:
Logged In: YES 
user_id=580910

As an additional data point: this seems to work just fine on Mac OS X.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2006-10-07 23:16

Message:
Logged In: YES 
user_id=80475

I can reproduce this in Py2.5 final.  This may be a 
TkInter bug and not unique to IDLE or to Windows.

----------------------------------------------------------------------

Comment By: Josiah Carlson (josiahcarlson)
Date: 2006-10-07 12:58

Message:
Logged In: YES 
user_id=341410

I can reproduce this on 2.5 beta 2, and it dies exactly when
'spawnv' is highlighted.  I have no suggested fixes, only
reproducing to verify that this is not user-specific bug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1571112&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to