Availability: Unix.
The readline module defines a number of functions used either directly or from the rlcompleter module to facilitate completion and history file read and write from the Python interpreter.
The readline module defines the following functions:
None
, any hook function already installed is removed. The
startup_hook function is called with no arguments just
before readline prints the first prompt.
None
, any hook function already installed is removed. The
pre_input_hook function is called with no arguments after the first prompt
has been printed and just before readline starts reading input characters.
None
, any completer function already installed is removed. The
completer function is called as function(text,
state)
, for state in 0
, 1
, 2
, ...,
until it returns a non-string value. It should return the next
possible completion starting with text.
See Also: