diff options
author | Ned Deily <nad@acm.org> | 2012-02-04 18:35:23 +0100 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-02-04 18:35:23 +0100 |
commit | 61c953436399944d0159209acf1eb373a4e97dec (patch) | |
tree | 15a4303e245ca332d6142ae0f673a16164b10860 | |
parent | 60be6f8e3737c942d8ca6781b0af51f220bc8dc8 (diff) | |
download | cpython-git-61c953436399944d0159209acf1eb373a4e97dec.tar.gz |
Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib. (Patch by Roger Serwy)
-rw-r--r-- | Lib/idlelib/AutoComplete.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py index fa1733f9a6..519099033f 100644 --- a/Lib/idlelib/AutoComplete.py +++ b/Lib/idlelib/AutoComplete.py @@ -190,7 +190,7 @@ class AutoComplete: 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 @@ class AutoComplete: 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] != '_'] @@ -90,6 +90,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. |