From: Georg Brandl Date: Wed, 6 Oct 2010 05:08:32 +0000 (+0000) Subject: #10034: import readline in longer example. X-Git-Tag: v3.2a3~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a102ae3426d868b0ef2c1710c89647508018ec36;p=thirdparty%2FPython%2Fcpython.git #10034: import readline in longer example. --- diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index cb1ae6dc1080..c66731715f4c 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -195,6 +195,7 @@ normally be executed automatically during interactive sessions from the user's :envvar:`PYTHONSTARTUP` file. :: import os + import readline histfile = os.path.join(os.environ["HOME"], ".pyhist") try: readline.read_history_file(histfile)