March 2003
Intermediate to advanced
656 pages
39h 30m
English
set_completer
set_completer(f=None)Sets the completion function. When f is
None, Readline disables completion. Otherwise,
when the user enters a partial word start
and then hits Tab, Readline calls
f
(
start,i
),
where i is an int,
initially 0. f returns
the ith possible word that begins with
start, or None when
there are no more. Readline calls f
repeatedly, with i set to
0, 1, 2,
..., until f returns
None.
Read now
Unlock full access