[Python-checkins] python/dist/src/Doc/lib libreadline.tex, 1.14,
1.15
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Mon May 24 10:20:19 EDT 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25522/Doc/lib
Modified Files:
libreadline.tex
Log Message:
stupid, stupid, stupid... raw_input() already supports readline() if the
readline module is loaded.
Index: libreadline.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libreadline.tex,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** libreadline.tex 23 May 2004 19:06:41 -0000 1.14
--- libreadline.tex 24 May 2004 14:20:16 -0000 1.15
***************
*** 16,23 ****
- \begin{funcdesc}{readline}{\optional{prompt}}
- Get a single line of input from the user.
- \end{funcdesc}
-
\begin{funcdesc}{parse_and_bind}{string}
Parse and execute single line of a readline init file.
--- 16,19 ----
***************
*** 161,165 ****
The following example extends the \class{code.InteractiveConsole} class to
! support command line editing and history save/restore.
\begin{verbatim}
--- 157,161 ----
The following example extends the \class{code.InteractiveConsole} class to
! support history save/restore.
\begin{verbatim}
***************
*** 184,193 ****
atexit.register(self.save_history, histfile)
- def raw_input(self, prompt=""):
- line = readline.readline(prompt)
- if line:
- readline.add_history(line)
- return line
-
def save_history(self, histfile):
readline.write_history_file(histfile)
--- 180,183 ----
More information about the Python-checkins
mailing list