◐ Shell
clean mode source ↗

Issue 37847: The IDLE does not show previous code suggestions if I tap on the up arrow

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.
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.