LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Python Interpreter: load latest command? (https://www.linuxquestions.org/questions/programming-9/python-interpreter-load-latest-command-633515/)

raskol 04-06-2008 04:10 PM

Python Interpreter: load latest command?
 
in the python interpreter, often i want to load the latest command again.

is there a direct command to copy/paste the latest command into the interpreter?

colucix 04-06-2008 04:44 PM

Use the arrow-up key.

raskol 04-06-2008 05:14 PM

Quote:

Originally Posted by colucix (Post 3112885)
Use the arrow-up key.

tried that put then it just jumps up to the previous row.

Dan04 04-06-2008 06:37 PM

Do you have readline installed on your system?

raskol 04-10-2008 08:34 AM

Quote:

Originally Posted by Dan04 (Post 3112960)
Do you have readline installed on your system?

dont know, how do i check? should i then be able to use arrow-up?

colucix 04-10-2008 09:07 AM

Quote:

Originally Posted by raskol (Post 3116830)
dont know, how do i check?

On a Redhat-based system simply do rpm -q readline. On a Debian-based system do dpkg -l readline.

Quote:

Originally Posted by raskol (Post 3116830)
should i then be able to use arrow-up?

Not really. Here is a tutorial.

raskol 04-10-2008 12:02 PM

Quote:

Originally Posted by colucix (Post 3116863)
On a Redhat-based system simply do rpm -q readline. On a Debian-based system do dpkg -l readline.


Not really. Here is a tutorial.

and on windows(vista)?


All times are GMT -5. The time now is 03:08 PM.