Name

set_completer

Synopsis

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.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.