Poke around the neighbourhood of these url's a bit: http://python.org/doc/lib/readline-example.html http://python.org/doc/lib/module-rlcompleter.html Alex.