interactave, readline, and insert_text

Fernando Perez fperez528 at yahoo.com
Fri Jul 30 15:41:36 EDT 2004


Christopher T King wrote:

> On an unrelated note, holy crap: I did not know of the existence of
> rlcompleter.  Let all to whom this module is unknown type the following at
> a Unix Python prompt:
> 
>  import readline
>  import rlcompleter
>  readline.parse_and_bind('tab: complete')
> 
> and rejoice! :) It just goes to show how many neat things Python does that
> you can go years without ever discovering them.

<shameless plug ahead>

If you like rlcompleter, you might try out ipython, which provides that, and
another ~14000 lines of code oriented at making the interactive experience much
better than what it is in the default python shell (including a profile with
support for Numeric and Gnuplot, and a coming one for matplotlib).

http://ipython.scipy.org

Best,

f.




More information about the Python-list mailing list