From ed3b867f330c107ed77044cffb4b28703aa17d08 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 4 Feb 2012 18:36:43 +0100 Subject: [PATCH] Issue #13933: IDLE auto-complete did not work with some imported module, like hashlib. (Patch by Roger Serwy) --- 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 index fa1733f9a6e..519099033f9 100644 --- a/Lib/idlelib/AutoComplete.py +++ b/Lib/idlelib/AutoComplete.py @@ -190,7 +190,7 @@ def fetch_completions(self, what, mode): 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 @@ def fetch_completions(self, what, mode): 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 index 136748e6cb7..d3a3b9e18d0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -113,6 +113,9 @@ Core and Builtins 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.