This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Ramchandra Apte, roger.serwy, terry.reedy
Date 2012-02-04.03:39:55
SpamBayes Score 4.6720627e-11
Marked as misclassified No
Message-id <1328326797.76.0.416934796475.issue13933@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-02-04 03:39:57terry.reedysetrecipients: + terry.reedy, roger.serwy, Ramchandra Apte
2012-02-04 03:39:57terry.reedysetmessageid: <1328326797.76.0.416934796475.issue13933@psf.upfronthosting.co.za>
2012-02-04 03:39:57terry.reedylinkissue13933 messages
2012-02-04 03:39:55terry.reedycreate