LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2008, 04:10 PM   #1
raskol
Member
 
Registered: Mar 2008
Posts: 51

Rep: Reputation: 15
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?
 
Old 04-06-2008, 04:44 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Use the arrow-up key.
 
Old 04-06-2008, 05:14 PM   #3
raskol
Member
 
Registered: Mar 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Use the arrow-up key.
tried that put then it just jumps up to the previous row.
 
Old 04-06-2008, 06:37 PM   #4
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Do you have readline installed on your system?
 
Old 04-10-2008, 08:34 AM   #5
raskol
Member
 
Registered: Mar 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Dan04 View Post
Do you have readline installed on your system?
dont know, how do i check? should i then be able to use arrow-up?
 
Old 04-10-2008, 09:07 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by raskol View Post
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 View Post
should i then be able to use arrow-up?
Not really. Here is a tutorial.
 
Old 04-10-2008, 12:02 PM   #7
raskol
Member
 
Registered: Mar 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
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)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
python limits in the interpreter avallach Programming 3 07-30-2007 08:29 AM
simple command interpreter Ayman.mashal Programming 7 06-04-2007 08:06 AM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 09:56 PM
Does Python interpreter have weird delay? lugoteehalt Programming 4 11-12-2003 01:43 PM
kernel unable to load interpreter Bubba Linux - General 1 03-27-2001 08:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration