Message152588
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 <tab>.) In fact, 'hashlib.' and <tab> results in a tab to next tab position. ^<space> to <show completions> also does not work, but it does without the '.'. Some files (only builtins?) work without being imported. Everything seemed to work the same in an edit window.
hashlib.__all__ exists as a tuple. Modules without .__all__ also work.
Both cases are handled in idlelib.AutoComplete.fetch_completions().
I see nothing strange about hashlib.
Looking at idlelib.AutoComplete.py, I see other problems to fix.
"This extension can complete either attribute names of file names."
/of/or/, but ^<sp> in name brings up globals list with cursor at closest name to what one has entered. Are these handled elsewhere?
# This string includes all chars that may be in a file name (without a path
# separator)
FILENAME_CHARS = string.ascii_letters + string.digits + os.curdir + "._~#$:-"
# This string includes all chars that may be in an identifier
ID_CHARS = string.ascii_letters + string.digits + "_"
FILENAME_CHARS looks Windows specific. Both definitions are obsolete. IDLE should not separately define such things if at all possible.
But 'hash' is not in the file and I see little specific to the text context. Without being able to insert print calls to see what is and is not executed, I have no idea how to proceed. |
|
Date |
User |
Action |
Args |
2012-02-04 03:39:57 | terry.reedy | set | recipients:
+ terry.reedy, roger.serwy, Ramchandra Apte |
2012-02-04 03:39:57 | terry.reedy | set | messageid: <1328326797.76.0.416934796475.issue13933@psf.upfronthosting.co.za> |
2012-02-04 03:39:57 | terry.reedy | link | issue13933 messages |
2012-02-04 03:39:55 | terry.reedy | create | |
|