tab compleation input

Fredrik Lundh fredrik at pythonware.com
Mon Nov 13 15:35:17 EST 2006


Eli Criffield wrote:

> Not sure what your trying to do, but it doesn't work. :)
> valid doesn't exsist

it's assigned to by the for-in loop, and is only used inside it.

> Either way, it doesn't take the tab tell after you hit enter, Not
> really what i was getting at. What i want is like a bash shell prompt.

you can use the "readline" module with a custom completer class.  see 
the second example on this page:

     http://effbot.org/librarybook/readline.htm

</F>




More information about the Python-list mailing list