Re: Disable readline

2011-12-01 Thread Nick Dokos
Steven D'Aprano wrote: > On Thu, 01 Dec 2011 00:00:52 -0500, Roy Smith wrote: > > > Another possibility is setting your TERM environment variable to > > something that readline can't support: > > > > ~$ TERM=asr33 > > ~$ python > > Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Ap

Re: Disable readline

2011-11-30 Thread Steven D'Aprano
On Thu, 01 Dec 2011 00:00:52 -0500, Roy Smith wrote: > Another possibility is setting your TERM environment variable to > something that readline can't support: > > ~$ TERM=asr33 > ~$ python > Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. > build 5646)] on darwin Type "h

Re: Disable readline

2011-11-30 Thread Roy Smith
In article <4ed6ffed$0$29986$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Is there a way to disable readline support in the interactive interpreter > at runtime? Either from within an existing session, or when the session > starts up will do. I'm

Disable readline

2011-11-30 Thread Steven D'Aprano
Is there a way to disable readline support in the interactive interpreter at runtime? Either from within an existing session, or when the session starts up will do. I am trying to test the behaviour of some interactive scripts which rely on readline. I have work-arounds for missing readline

How to disable readline when building Python?

2010-07-03 Thread Sridhar Ratnakumar
For licensing reasons, I need to disable readline, except editline on OSX, when building Python. For the life of me, I cannot figure out how this can be done ("./configure --help" does not show anything relevant); I've tried the following, and readline.so will still be built:

Re: Is it possible to disable readline in the interactive interpreter?

2009-06-08 Thread Thomas Heller
Paul Moore schrieb: > I run Python on Windows. I have the (pure Python) pyreadline package > installed for (occasional) use by IPython. However, when I use the > normal Python interactive prompt, the mere fact that the readline > module exists means that it gets used. > > Is there a way of disabli

Re: Is it possible to disable readline in the interactive interpreter?

2009-06-08 Thread Paul Moore
t; > module exists means that it gets used. > > I used to get round this by installing pyreadline within the > iPython package, so it only appeared to exist from that > app's POV. Interesting approach - I hadn't thought of that. I might give that a try. Nevertheless, if it isn

Re: Is it possible to disable readline in the interactive interpreter?

2009-06-08 Thread Tim Golden
Paul Moore wrote: I run Python on Windows. I have the (pure Python) pyreadline package installed for (occasional) use by IPython. However, when I use the normal Python interactive prompt, the mere fact that the readline module exists means that it gets used. I used to get round this by installi

Is it possible to disable readline in the interactive interpreter?

2009-06-08 Thread Paul Moore
I run Python on Windows. I have the (pure Python) pyreadline package installed for (occasional) use by IPython. However, when I use the normal Python interactive prompt, the mere fact that the readline module exists means that it gets used. Is there a way of disabling this? (Preferably by default,

curses & disable readline & replace stdin

2005-03-04 Thread Brano Zarnovican
Hi ! I'd like to init curses and still have working Python interactive command line. I found that you can replace stdin/stdout/stderr like this: #!/usr/bin/python -i import curses import sys import atexit # this doesn't help, anyway #del sys.modules['readline'] # global variable (curses window