]> granicus.if.org Git - python/commitdiff
Document use_rawinput. (Although now that I think more about it, a
authorGuido van Rossum <guido@python.org>
Sat, 24 Mar 2001 19:17:35 +0000 (19:17 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Mar 2001 19:17:35 +0000 (19:17 +0000)
better solution would have been to factor out the raw_input() call and
make it into an overridable method.  Oh well, maybe later...)

Doc/lib/libcmd.tex

index 37e08a2933f0d8ad26ffbf2ad87eb75c57df42c5..e38fc241c76b474f7ad3ce85d5b72a723cb1a163 100644 (file)
@@ -138,4 +138,9 @@ headers.  If empty, no ruler line is drawn.  It defaults to
 \character{=}.
 \end{memberdesc}
 
-
+\begin{memberdesc}{use_rawinput}
+A flag, defaulting to true.  If true, \method{cmdloop()} uses
+\function{raw_input()} to display a prompt and read the next command;
+if false, \function{sys.stdout.write()} and
+\function{sys.stdin.readline()} are used.
+\end{memberdesc}