summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librlcompleter.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/lib/librlcompleter.tex')
-rw-r--r--Doc/lib/librlcompleter.tex16
1 files changed, 9 insertions, 7 deletions
diff --git a/Doc/lib/librlcompleter.tex b/Doc/lib/librlcompleter.tex
index b2a1eba7..cb2ac59 100644
--- a/Doc/lib/librlcompleter.tex
+++ b/Doc/lib/librlcompleter.tex
@@ -2,18 +2,17 @@
Completion function for GNU readline}
\declaremodule{standard}{rlcompleter}
- \platform{Unix}
\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
-\modulesynopsis{Python identifier completion for the GNU readline library.}
+\modulesynopsis{Python identifier completion, suitable for the GNU readline library.}
-The \module{rlcompleter} module defines a completion function for
+The \module{rlcompleter} module defines a completion function suitable for
the \refmodule{readline} module by completing valid Python identifiers
and keywords.
-This module is \UNIX-specific due to its dependence on the
-\refmodule{readline} module.
-
-The \module{rlcompleter} module defines the \class{Completer} class.
+When this module is imported on a \UNIX\ platform with the \module{readline}
+module available, an instance of the \class{Completer} class is automatically
+created and its \method{complete} method is set as the \module{readline}
+completer.
Example:
@@ -44,6 +43,9 @@ else:
\end{verbatim}
+On platforms without \module{readline}, the \class{Completer} class defined
+by this module can still be used for custom purposes.
+
\subsection{Completer Objects \label{completer-objects}}
Completer objects have the following method: