tab completion in cmd

William Park parkw at better.net
Sun May 13 13:56:01 EDT 2001


On Sun, May 13, 2001 at 06:32:04PM +0100, Michael Hudson wrote:
> Luca Manini <manini at eclipse-net.it> writes:
> 
> > is it possible to have configurable tab-completion (à la tcsh) in
> > the command line interface (cmd) of Python?
> 
> "import rlcompleter" shoud do the trick.

>From the docs, putting the following in a file named by PYTHONSTARTUP
environment variable will enable TAB-completion for interactive session:
    import rlcompleter
    rlcompleter.readline.parse_and_bind('tab: complete')

--William Park, Open Geometry Consulting, Mississauga, Ontario, Canada.
  8 CPU cluster, (Slackware) Linux, Python, LaTeX, vim, mutt




More information about the Python-list mailing list