Mercurial > cpython-lru_cache-weakref
changeset 65105:8bcbdd6730a7
#10034: import readline in longer example.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 06 Oct 2010 05:08:32 +0000 |
| parents | 1c417811e508 |
| children | a0479340f035 |
| files | Doc/library/readline.rst |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Doc/library/readline.rst Tue Oct 05 23:14:47 2010 +0000 +++ b/Doc/library/readline.rst Wed Oct 06 05:08:32 2010 +0000 @@ -195,6 +195,7 @@ :envvar:`PYTHONSTARTUP` file. :: import os + import readline histfile = os.path.join(os.environ["HOME"], ".pyhist") try: readline.read_history_file(histfile)
