Idle line recall
An Idle shell feature: click a line you typed earlier and press Enter to copy it to the prompt, ready to edit and run again.
In more detail
It is far quicker than retyping a long line for one small change. Alt-P and Alt-N, or Control-P and Control-N on a Mac, step back and forward through earlier lines too.
Related terms
- IDLE — The simple editor and Python shell that come with Python itself.
- Python shell — The interactive mode of the interpreter, where you type one statement at the >>> prompt and see the result straight away.
Taught in
- Types And Functions, A Whirlwind Tour — Hands-on Python: Complete Video Course & Book