[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 6.11 Import statement says " __all__; if defined, it must be a sequence of strings which are names defined or imported by that module." I am tempted to open an issue to change 'sequence' to 'list', or even 'sorted sequence', but that is difficult to enforce.

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b93ee675ec4 by Terry Jan Reedy in branch '2.7': #13933 refine patch using 'new' builtin http://hg.python.org/cpython/rev/2b93ee675ec4 New changeset d8f988b0c959 by Terry Jan Reedy in branch '3.2': #13933 refine patch using 'new' builtin http://hg.

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Éric Araujo
Éric Araujo added the comment: BTW I wonder if setting __all__ to something but a list is valid. I think I ran into a similar bug once and fixing __all__ fixed it. The IDLE robustness fix is probably a good thing, but maybe we should also check the stdlib’s __all__s and the docs. -

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you both. I saw the answer (hashlib.__all__ is, unusally, a tuple) but did not see how it was the answer. -- ___ Python tracker ___

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Ned Deily
Changes by Ned Deily : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Ned Deily
Ned Deily added the comment: Roger's patch solves the problem. Thanks! Applied to 2.7 (for 2.7.3), 3.2 (for 3.2.3), and default (for 3.3). -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected ___ Python tracker

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 741d4aaf7947 by Ned Deily in branch '2.7': Issue #13933: IDLE auto-complete did not work with some imported http://hg.python.org/cpython/rev/741d4aaf7947 New changeset 3e9a7fdf0498 by Ned Deily in branch '3.2': Issue #13933: IDLE auto-complete did

[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch against 3.3a0 to fix the problem. The cause of the bug is that a tuple can not be sorted and calling .sort was raising a silenced exception. The patch explicitly converts __all__ to a list. -- keywords: +patch Added file: http://bugs.

[issue13933] IDLE:not able to complete the hashlib module

2012-02-03 Thread Ramchandra Apte
Ramchandra Apte added the comment: I am using Ubuntu 11.04 with Python 3.2.2 from the package reprositeries (binaries) -- ___ Python tracker ___ ___

[issue13933] IDLE:not able to complete the hashlib module

2012-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ramchandra: what OS and Python version? Please always include in reports. I verified on win7,3.2.2, with hashlib versus itertools, idlelib, heapq, trace. (On my new machine, popup is so fast I do not need .) In fact, 'hashlib.' and results in a tab to next t

[issue13933] IDLE:not able to complete the hashlib module

2012-02-03 Thread Ramchandra Apte
New submission from Ramchandra Apte : No completion appears when I import hashlib in IDLE and type in "hashlib." and press Tab to complete. With any other module it works. -- components: IDLE, Library (Lib) messages: 152531 nosy: ramchandra.apte priority: normal severity: normal status: