Kaydet (Commit) 905dc558 authored tarafından Fred Drake's avatar Fred Drake

Cleaned up the description of readline.set_completer().

Thanks to Nathaniel Gray for reporting the confusion.
üst 722d78f1
...@@ -55,10 +55,13 @@ file size. ...@@ -55,10 +55,13 @@ file size.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{set_completer}{\optional{function}} \begin{funcdesc}{set_completer}{\optional{function}}
Set or remove the completer function. The completer function is Set or remove the completer function. If \var{function} is specified,
called as \code{\var{function}(\var{text}, \var{state})}, it will be used as the new completer function; if omitted or
\code{for i in [0, 1, 2, ...]} until it returns a non-string. \code{None}, any completer function already installed is removed. The
It should return the next possible completion starting with \var{text}. completer function is called as \code{\var{function}(\var{text},
\var{state})}, for \var{state} in \code{0}, \code{1}, \code{2}, ...,
until it returns a non-string value. It should return the next
possible completion starting with \var{text}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{get_begidx}{} \begin{funcdesc}{get_begidx}{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment