readline: custom keywords

Fredrik Lundh fredrik at effbot.org
Tue Jan 30 06:22:39 EST 2001


Michal Bozon wrote:
> Is `readline' library designed only for interactive python,
> or is it also possible to use it in own programs with own keywords?

the python support is provided by the rlcompleter module.

check the module sources (Lib/rlcompleter.py) to see how
you can plug in your own "completer" function.

Cheers /F





More information about the Python-list mailing list