[Python-checkins] cpython (2.7): Issue #13933: IDLE auto-complete did not work with some imported

ned.deily python-checkins at python.org
Sat Feb 4 18:38:45 CET 2012


http://hg.python.org/cpython/rev/741d4aaf7947
changeset:   74766:741d4aaf7947
branch:      2.7
parent:      74763:bc6e768de2cc
user:        Ned Deily <nad at acm.org>
date:        Sat Feb 04 18:35:23 2012 +0100
summary:
  Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib.  (Patch by Roger Serwy)

files:
  Lib/idlelib/AutoComplete.py |  4 ++--
  Misc/NEWS                   |  3 +++
  2 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -190,7 +190,7 @@
                     bigl = eval("dir()", namespace)
                     bigl.sort()
                     if "__all__" in bigl:
-                        smalll = eval("__all__", namespace)
+                        smalll = list(eval("__all__", namespace))
                         smalll.sort()
                     else:
                         smalll = [s for s in bigl if s[:1] != '_']
@@ -200,7 +200,7 @@
                         bigl = dir(entity)
                         bigl.sort()
                         if "__all__" in bigl:
-                            smalll = entity.__all__
+                            smalll = list(entity.__all__)
                             smalll.sort()
                         else:
                             smalll = [s for s in bigl if s[:1] != '_']
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -90,6 +90,9 @@
 Library
 -------
 
+- Issue #13933: IDLE auto-complete did not work with some imported
+  module, like hashlib.  (Patch by Roger Serwy)
+
 - Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
 
 - Issue #13676: Handle strings with embedded zeros correctly in sqlite3.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list