[Python-Dev] auto-import rlcompleter instead of readline?

Flying Cougar Burnette tommy@ilm.com
Thu, 22 Mar 2001 15:03:29 -0800 (PST)


Hey Folks,

When running an interactive interpreter python currently tries to
import "readline", ostensibly to make your interactive experience a
little easier (with history, extra keybindings, etc).  For a while now 
we python has also shipped with a standard module called "rlcompleter" 
which adds name completion to the readline functionality.

Can anyone think of a good reason why we don't import rlcompleter
instead of readline by default?  I can give you a good reason why it
*should*, but I'd rather not bore anyone with the details if I don't
have to.

All in favor, snag the following patch....


------------%< snip %<----------------------%< snip %<------------

Index: Modules/main.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/main.c,v
retrieving revision 1.51
diff -r1.51 main.c
290c290
<               v = PyImport_ImportModule("readline");
---
>               v = PyImport_ImportModule("rlcompleter");