Python rlcompleter Module
Example
Enable tab completion in the interactive interpreter:
import rlcompleter
import readline
readline.parse_and_bind('tab: complete')
print('Tab completion enabled!')
Try it Yourself »
Definition and Usage
The rlcompleter module provides tab completion functionality for the interactive Python interpreter.
Use it to enable auto-completion of Python identifiers, keywords, and module attributes when working in an interactive shell.
Note: This module requires the readline module, which is only available on Unix/Linux systems.
Members
Member | Description |
---|---|
Completer | Class that provides completion functionality. |
Completer.complete() | Return the next possible completion for a given text. |