Is it possible to disable readline in the interactive interpreter?

Thomas Heller theller at python.net
Mon Jun 8 15:10:30 EDT 2009


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 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



More information about the Python-list mailing list