PEP 3131: support non-ASCII characters in auto-completion of identifiers.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 3 Jun 2012 10:32:42 +0000 (12:32 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 3 Jun 2012 10:32:42 +0000 (12:32 +0200)
Lib/idlelib/AutoComplete.py
Lib/idlelib/NEWS.txt

index 1298d9f012e45a6884760381496e9546aaaaf074..6b5391ba790994d787d73d046cd73e715593e751 100644 (file)
@@ -143,7 +143,7 @@ class AutoComplete:
         elif hp.is_in_code() and (not mode or mode==COMPLETE_ATTRIBUTES):
             self._remove_autocomplete_window()
             mode = COMPLETE_ATTRIBUTES
-            while i and curline[i-1] in ID_CHARS:
+            while i and curline[i-1] in ID_CHARS or ord(curline[i-1]) > 127:
                 i -= 1
             comp_start = curline[i:j]
             if i and curline[i-1] == '.':
index 334b0c2d97dea0dc9ddec2c798bde3ca6cbb26b2..de9f55d2f7eb790a59603f201ca6e9d7805cd68f 100644 (file)
@@ -2,7 +2,7 @@ What's New in IDLE 3.2.4?
 =========================
 
 - Issue #14937: Perform auto-completion of filenames in strings even for
-  non-ASCII filenames.
+  non-ASCII filenames. Likewise for identifiers.
 
 What's New in IDLE 3.2.3?
 =========================