LinuxQuestions.org
Help answer threads with 0 replies.
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, 05: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, 05:44 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Use the arrow-up key.
 
Old 04-06-2008, 06: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, 07: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, 09: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, 10:07 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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, 01: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:29 AM
simple command interpreter Ayman.mashal Programming 7 06-04-2007 09:06 AM
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 10:56 PM
Does Python interpreter have weird delay? lugoteehalt Programming 4 11-12-2003 02:43 PM
kernel unable to load interpreter Bubba Linux - General 1 03-27-2001 09:58 PM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration