diff options
author | Georg Brandl <georg@python.org> | 2010-10-06 05:08:32 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-06 05:08:32 (GMT) |
commit | a102ae3426d868b0ef2c1710c89647508018ec36 (patch) | |
tree | c9308e20085a1264af58ec04d18a3f1ea62f47c6 /Doc | |
parent | b44155483515123a320ae57ec4b7ab237f991362 (diff) | |
download | cpython-a102ae3426d868b0ef2c1710c89647508018ec36.zip cpython-a102ae3426d868b0ef2c1710c89647508018ec36.tar.gz cpython-a102ae3426d868b0ef2c1710c89647508018ec36.tar.bz2 |
#10034: import readline in longer example.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/readline.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index cb1ae6d..c667317 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) |