changeset: 74766:741d4aaf7947 branch: 2.7 parent: 74763:bc6e768de2cc user: Ned Deily date: Sat Feb 04 18:35:23 2012 +0100 files: Lib/idlelib/AutoComplete.py Misc/NEWS description: Issue #13933: IDLE auto-complete did not work with some imported module, like hashlib. (Patch by Roger Serwy) diff -r bc6e768de2cc -r 741d4aaf7947 Lib/idlelib/AutoComplete.py --- a/Lib/idlelib/AutoComplete.py Sat Feb 04 16:44:21 2012 +0100 +++ b/Lib/idlelib/AutoComplete.py Sat Feb 04 18:35:23 2012 +0100 @@ -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 -r bc6e768de2cc -r 741d4aaf7947 Misc/NEWS --- a/Misc/NEWS Sat Feb 04 16:44:21 2012 +0100 +++ b/Misc/NEWS Sat Feb 04 18:35:23 2012 +0100 @@ -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.

AltStyle によって変換されたページ (->オリジナル) /