Is it possible to disable readline in the interactive interpreter?

P

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, rather than
on a per-session basis).

I don't want to get into usability arguments, but the standard Windows
command line history and editing is fine for me, and consistency with
other apps is more important in this case than configurability (or any
other benefits of readline). And yes, the default behaviour of
readline *is* different, in small but irritating ways.

Paul.
 
T

Tim Golden

Paul said:
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 installing pyreadline within the
iPython package, so it only appeared to exist from that
app's POV.

TJG
 
P

Paul Moore

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't possible to disable readline, I may
just raise a bug report as well...

Paul.
 
T

Thomas Heller

Paul said:
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, rather than
on a per-session basis).

I don't want to get into usability arguments, but the standard Windows
command line history and editing is fine for me, and consistency with
other apps is more important in this case than configurability (or any
other benefits of readline). And yes, the default behaviour of
readline *is* different, in small but irritating ways.

This has also disturbed me. However, tab-completion is really nice sometimes.
I wonder if there is a way to to configure readline to that it behaves
on 'up' or 'down' keypresses in the same way as the windows console.
Does someone have such a configuration?

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top