diff options
author | Guido van Rossum <guido@python.org> | 2001-03-24 19:17:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-24 19:17:35 (GMT) |
commit | c8da0f966fd5362383e638c586c34e05e9652025 (patch) | |
tree | b991ce0e69f676ba19b17af4c57f32175b0a0c4d | |
parent | 1ad37bb508b990d73a76fdbeae9cb5aeadd0b4b0 (diff) | |
download | cpython-c8da0f966fd5362383e638c586c34e05e9652025.zip cpython-c8da0f966fd5362383e638c586c34e05e9652025.tar.gz cpython-c8da0f966fd5362383e638c586c34e05e9652025.tar.bz2 |
Document use_rawinput. (Although now that I think more about it, a
better solution would have been to factor out the raw_input() call and
make it into an overridable method. Oh well, maybe later...)
-rw-r--r-- | Doc/lib/libcmd.tex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/lib/libcmd.tex b/Doc/lib/libcmd.tex index 37e08a2..e38fc24 100644 --- a/Doc/lib/libcmd.tex +++ b/Doc/lib/libcmd.tex @@ -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} |