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.

classification
Title: The IDLE does not show previous code suggestions if I tap on the up arrow
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.9
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE: Patch to make PyShell behave more like a Terminal interface
View: 2704
Assigned To: terry.reedy Nosy List: Edwin Pratt, terry.reedy
Priority: normal Keywords:

Created on 2019-08-14 03:37 by Edwin Pratt, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg349638 - (view) Author: Edwin Pratt (Edwin Pratt) Date: 2019-08-14 03:37
If I am typing some Python code in the IDLE, for example a function:

def sayHi(name):
    print('Hello ', name)

and I execute the function:

sayHi('Ed')

I can not edit the function or execute a previous line of code again if I tap the up arrow on my keyboard. It seemed to work in the previous versions of Python. In order to execute a previous line of code I have to either copy it, or type it in again.
msg349655 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-08-14 06:51
There are two ways to navigate history.

1. Shell menu, Previous History and Next History, which show the hot keys on your system.  The hot keys can be customized with Options, Settings, Keys tab, history_prev, history_next.

This is easily found by looking through the menu or the first part of the IDLE doc (Help, IDLE Help).

2. Click on previous line and hit Return.  Should be somewhere in the IDLE Doc.

#2704 includes a proposal to change arrow key behavior.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82028
2019-08-14 06:51:52terry.reedysetstatus: open -> closed
versions: + Python 3.9, - Python 3.7
superseder: IDLE: Patch to make PyShell behave more like a Terminal interface
messages: + msg349655

resolution: duplicate
stage: resolved
2019-08-14 03:37:15Edwin Prattcreate