TAB completion

Stefan Heimann stefan.heimann at web.de
Mon Jul 29 10:10:44 EDT 2002


Dave Cinege <dcinege at psychosis.com> wrote::

> On Monday 29 July 2002 5:11, Stefan Heimann wrote:
>> Dave Cinege <dcinege at psychosis.com> wrote::
>> > On Sunday 28 July 2002 6:19, Stefan Heimann wrote:
>> >> Hi!
>> >>
>> >> I have a application with a builtin interactive shell. I use the
>> >> readline module for command completion and history browsing. The
>> >> following code enables filename completion:
>> >
>> > Is your work based on the cmd module?
>>
>> No it is not. I have looked at the cmd module, but its completion
>> function does not contain filename completion.
> 
> Not true. Please see
> http://mail.python.org/pipermail/python-list/2002-July/thread.html#114824
> http://mail.python.org/pipermail/python-list/2002-July/114824.html

Ah, ok thanks! I am developing with python 2.1 and this feature of the
cmd class is not available in that version.

Is it corrrect, that readline's default filename completion is applied
when the function set with set_completer(completionFun) returns
`None'?

That seems to be the point I did not understand.

Thanks for helping!

Bye Stefan



More information about the Python-list mailing list