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.

Title: Tab key doesn't work sometimes.
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Howitzer21, kbk, python-dev, roger.serwy, serhiy.storchaka, terry.reedy
Priority: normal Keywords: patch

Created on 2013-09-09 13:14 by Howitzer21, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
console.txt Howitzer21, 2013-09-09 13:14
idle_autocomplete_nochange.patch serhiy.storchaka, 2013-09-09 18:42 review
Messages (5)
msg197364 - (view) Author: (Howitzer21) Date: 2013-09-09 13:14
In the IDLE program for Python 3.3.2, I've run across a situation where the tab key is not working.  I have attached a file that shows everything in IDLE's console.  At the very end of the file, you can see where I have typed in the word "queue" in IDLE without pressing enter.  At this point, if I press tab, nothing happens.  If I press space and then tab, suddenly it'll work just fine.  But then if I delete all the spaces and tabs and just go back to having nothing more than "queue" on the line, with no trailing whitespace, suddenly tab will go back to not working.
msg197372 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-09-09 18:42
I think this patch should fix the bug.
msg197373 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-09-09 18:44
There is simpler test case. Just enter "flo" and press <TAB>. Twice.
msg197374 - (view) Author: Roger Serwy (roger.serwy) * (Python committer) Date: 2013-09-09 18:50
LGTM. I manually tested it by assigning "aaaaa = 1" and then pressing tab at after "a", "aa",  "aaa", and "aaaaa", and then pressing tab afterwards. Tab works to complete the name, and then afterwards when it has been replaced with "aaaaa".
msg197506 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-09-11 20:00
New changeset c882395e8ed8 by Serhiy Storchaka in branch '3.3':
Issue #18988: The "Tab" key now works when a word is already autocompleted.

New changeset 7d38784092d8 by Serhiy Storchaka in branch 'default':
Issue #18988: The "Tab" key now works when a word is already autocompleted.

New changeset 8d320204d5d6 by Serhiy Storchaka in branch '2.7':
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Date User Action Args
2022-04-11 14:57:50adminsetgithub: 63188
2013-09-11 22:00:25serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2013-09-11 20:00:17python-devsetnosy: + python-dev
messages: + msg197506
2013-09-09 18:50:18roger.serwysetmessages: + msg197374
2013-09-09 18:44:54serhiy.storchakasetmessages: + msg197373
2013-09-09 18:42:28serhiy.storchakasetfiles: + idle_autocomplete_nochange.patch

nosy: + serhiy.storchaka
messages: + msg197372

keywords: + patch
stage: patch review
2013-09-09 17:28:04serhiy.storchakasetnosy: + terry.reedy, kbk, roger.serwy

versions: + Python 2.7, Python 3.4
2013-09-09 13:14:36Howitzer21create