[Python-checkins] r60778 - python/branches/release25-maint/Lib/idlelib/AutoCompleteWindow.py python/branches/release25-maint/Lib/idlelib/NEWS.txt

kurt.kaiser python-checkins at python.org
Thu Feb 14 05:02:11 CET 2008


Author: kurt.kaiser
Date: Thu Feb 14 05:02:10 2008
New Revision: 60778

Modified:
   python/branches/release25-maint/Lib/idlelib/AutoCompleteWindow.py
   python/branches/release25-maint/Lib/idlelib/NEWS.txt
Log:
1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt
Backport of r53042


Modified: python/branches/release25-maint/Lib/idlelib/AutoCompleteWindow.py
==============================================================================
--- python/branches/release25-maint/Lib/idlelib/AutoCompleteWindow.py	(original)
+++ python/branches/release25-maint/Lib/idlelib/AutoCompleteWindow.py	Thu Feb 14 05:02:10 2008
@@ -118,8 +118,11 @@
             i = 0
             while i < len(lts) and i < len(selstart) and lts[i] == selstart[i]:
                 i += 1
-            while cursel > 0 and selstart[:i] <= self.completions[cursel-1]:
+            previous_completion = self.completions[cursel - 1]
+            while cursel > 0 and selstart[:i] <= previous_completion:
                 i += 1
+                if selstart == previous_completion:
+                    break  # maybe we have a duplicate?
             newstart = selstart[:i]
         self._change_start(newstart)
 

Modified: python/branches/release25-maint/Lib/idlelib/NEWS.txt
==============================================================================
--- python/branches/release25-maint/Lib/idlelib/NEWS.txt	(original)
+++ python/branches/release25-maint/Lib/idlelib/NEWS.txt	Thu Feb 14 05:02:10 2008
@@ -3,11 +3,14 @@
 
 *Release date: XX-FEB-2008*
 
+- Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
+  (backport r53042)
+
 - Some syntax errors were being caught by tokenize during the tabnanny        
   check, resulting in obscure error messages.  Do the syntax check            
   first.  Bug 1562716, 1562719  (backport r52083)
 
-- Patch 1693258: Fix for duplicate "preferences" menu-OS X. Backport of r56204.
+- Patch 1693258: Fix for duplicate "preferences" menu-OS X. (backport r56204)
 
 - OSX: Avoid crash for those versions of Tcl/Tk which don't have a console
 
@@ -70,6 +73,13 @@
 
 *Release date: 03-AUG-2006*
 
+- Bug #1525817: Don't truncate short lines in IDLE's tool tips.
+
+- Bug #1517990: IDLE keybindings on MacOS X now work correctly
+
+- Bug #1517996: IDLE no longer shows the default Tk menu when a
+  path browser, class browser or debugger is the frontmost window on MacOS X
+
 - EditorWindow.test() was failing.  Bug 1417598
 
 - EditorWindow failed when used stand-alone if sys.ps1 not set.
@@ -106,6 +116,8 @@
 
 *Release date: 05-APR-2006*
 
+- Patch #1162825: Support non-ASCII characters in IDLE window titles.
+
 - Source file f.flush() after writing; trying to avoid lossage if user
   kills GUI.
 


More information about the Python-checkins mailing list