473,594 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

command history broken in Python2.3 ?

Hello ,

I'm tring Python 2.3 ( on source and binary distribution ,
on Linux and Windows ) and i think
the command history doesn't work .

When i use the Up-Arrow in Python2.3
started in an xterm i get '^[[A' .
In IDLE under Windows using Alt-p produce nothig .
In IDLE under Linux Alt-p works !! .

Do you have the same behavior in you
interpreter ?

Bye .

(p.s. please forgive english mistakes )
Jul 18 '05 #1
9 2269
Nicola Mingotti wrote:
Hello ,

I'm tring Python 2.3 ( on source and binary distribution ,
on Linux and Windows ) and i think
the command history doesn't work .

When i use the Up-Arrow in Python2.3
started in an xterm i get '^[[A' .
In IDLE under Windows using Alt-p produce nothig .
In IDLE under Linux Alt-p works !! .

Do you have the same behavior in you
interpreter ?

Bye .

(p.s. please forgive english mistakes )


Just installed 2.3 final release on Linux
Same problem here...

Vincent Wehren

Jul 18 '05 #2
Nicola Mingotti <ni************ ********@libero .it> writes:
When i use the Up-Arrow in Python2.3
started in an xterm i get '^[[A' .
In IDLE under Windows using Alt-p produce nothig .
In IDLE under Linux Alt-p works !! .

Do you have the same behavior in you
interpreter ?


Can you determine whether the readline module was built (import
readline)?

Regards,
Martin

Jul 18 '05 #3
- readline module (or maybe incorrectly picked termlib instead of
+ readline library (or maybe incorrectly picked termlib instead of
John
Jul 18 '05 #4
On Sun, 03 Aug 2003 17:35:31 +0200, Nicola Mingotti wrote:
Hello ,
... John and Martin spoke of termcap and readline ... there it was :)


.... I hadn't installed two C libraries that were needed :
'readline' and 'termcap' . After installing them i re-configured/compiled
python and now commands history works fine .
But under windows , where i have only the binary version
at hands , the problem remains ...

bye .

Nico
Jul 18 '05 #5
Nicola Mingotti wrote:
On Sun, 03 Aug 2003 17:35:31 +0200, Nicola Mingotti wrote:
Hello ,
... John and Martin spoke of termcap and readline ... there it was :)


... I hadn't installed two C libraries that were needed :
'readline' and 'termcap' . After installing them i re-configured/compiled
python and now commands history works fine .
But under windows , where i have only the binary version
at hands , the problem remains ...


Have you tried installing Gonnerman's "Alternativ e Readline",
http://newcenturycomputers.net/projects/readline.html ? I have
found it extremely useful to gain the gist of readline's
functionality on Windows installatons of Python.
Alex

Jul 18 '05 #6

Readline for Python on Windows, get it here....

http://ipython.scipy.org/dist/PyRead...-4.0p22.tar.gz

You will need the mingw compiler to build it I seem to remember. It
works like a charm.

Sean
--
+---------------------------------------------------------------+
| All spelling errors are intentional and are there to show new |
| and improved ways of spelling old words. |
+---------------------------------------------------------------+
Jul 18 '05 #7
On Mon, 04 Aug 2003 09:54:28 +0200, Alex Martelli wrote:
Have you tried installing Gonnerman's "Alternativ e Readline",
http://newcenturycomputers.net/projects/readline.html ? I have found it
extremely useful to gain the gist of readline's functionality on Windows
installatons of Python.
-- Alex


yes , only now , and it works .

thank you .
bye.
Jul 18 '05 #8
Alex Martelli <al***@aleax.it > writes:
Have you tried installing Gonnerman's "Alternativ e Readline",
http://newcenturycomputers.net/projects/readline.html ? I have
found it extremely useful to gain the gist of readline's
functionality on Windows installatons of Python.


Ehemm... How do you use readline? What should it do?

Does it work on 2.3? I tried installing but the readline function had
a different function prototype so I guess it doesn't work.
--

Vennlig hilsen

Syver Enstad
Jul 18 '05 #9
----- Original Message -----
From: "Syver Enstad" <sy************ *@online.no>

Alex Martelli <al***@aleax.it > writes:
Have you tried installing Gonnerman's "Alternativ e Readline",
http://newcenturycomputers.net/projects/readline.html ? I have
found it extremely useful to gain the gist of readline's
functionality on Windows installatons of Python.


Ehemm... How do you use readline? What should it do?

Does it work on 2.3? I tried installing but the readline function had
a different function prototype so I guess it doesn't work.


I don't have a version for 2.3 yet. Give me time, and
I'll get it built (after I download the 2.3 installer and
build a MinGW32 import library for it).

Chris Gonnerman -- ch************* @newcenturycomp uters.net
http://newcenturycomputers.net

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
5605
by: Matt Mower | last post by:
Hi folks, I have an old Linux box that I am messing about with Python on. The RedHat installed version is 1.5 something so I have built & installed 2.2.2 in /opt/python. I've started trying to play with XML and ran into an error when attempting to parse a document: >Traceback (most recent call last):
4
2334
by: Jochen Demuth | last post by:
Hi, I am trying to install ZWiki on Zope 2.5.1 / Debian 2.4.20-bf2.4-xfs. First I copied the contents of the ZWiki-0.32.0.tgz to the Products-directory under SOFTWARE_HOME: This is what it contained before: server1:/usr/lib/zope/lib/python/Products# ls ExternalMethod PageTemplates StandardCacheManagers ZSQLMethods Hotfix_2002-06-14 PluginIndexes TemporaryFolder ZopeTutorial
0
1423
by: Gene Heskett | last post by:
On Monday 26 July 2004 00:55, Jeffrey Burns wrote: >FWIW, I've had the same problem right for the last ~24 hrs. Just >installed FC2. So did I just now, and when I was done, I tried to fire off yum to go bring it up to date. Silly me, I have exactly the same error I had for the last month after yum updated something on the FC1 system. The python and yum lists have seen this question form me before, no answer then, hopefully now there...
0
1297
by: Glenn R Williams | last post by:
Has anybody gotten shelve to work under SuSE 9.1? I have SuSe 9.1, Python 2.3.3.85, db 4.2.52, and bsddb3-4.2.4. When I try to create a shelve, I get errors galore, Here's the traceback: Traceback (most recent call last): File "<pyshell#17>", line 1, in -toplevel- d=shelve.open('mydbm',flag='c') File "/usr/lib/python2.3/shelve.py", line 231, in open
2
8610
by: Nigel King | last post by:
I have a problem with the logging module. It reports a Broken Pipe error after outputing to the log file occasionally (5%). This does not appear to happen on Mac OSX using current finked python (2.3.3) but does appear to occur on Python 2.3.4 running on a very old Redhat Linux xxxxx 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686. The actual logged error follows my signature. Note that "files used:-" has been sent to the file. From a...
4
1924
by: Chris | last post by:
Since I've installed (from sources) Python 2.3.4 on SuSE 8.2 the command history is not working anymore. When I press the cursor keys I get ^[[A or ^[[B .... I also tried to install IPython but the same problem is there. What's wrong? Chris
1
3265
by: Stefan Bellon | last post by:
Hi all! I'm embedding Python in my own C (or rather Ada, but via the C interface) program. Everything runs fine. But I have a small question regarding command history. Let's take the simplest example: #include <Python.h> int main(void) {
6
1937
by: ThomasC | last post by:
Hello, How to configure Python2.5's interactive interpreter to get command history ? I always got ^[[A and ^[[B . Thank you !! Thomas#
13
3992
by: c3950ig | last post by:
Hi, I am python newbie and the command prompt is having an issue with python. I installed python 2.4.4 onto my windows machine, opened a command prompt window, and typed python to start the interactive mode. Got the following error. D:\>python 'python' is not recognized as an internal or external command, operable program or batch file.
0
7947
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7880
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8255
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6665
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3868
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.