Terminal Interface Modules

rlcompleter

Offers completion of Python identifiers and dotted attribute expressions. Completer can use an explicit namespace; repeated complete calls enumerate candidates until None. Attribute completion can evaluate expressions or trigger attribute access, so use trusted objects. Import may register a readline completer on supported builds.

Formal Syntax & Structure

python syntaxpython
import rlcompleter

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
from rlcompleter import Completercompleter = Completer({"inventory_total": 7})print(completer.complete("inventory_t", 0))
Python Reference