bpo-38791: Add readline history environment variable by jonathan-conder · Pull Request #17149 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/library/site.rst
6 changes: 6 additions & 0 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,12 @@ before the command-line switches other than -E or -I. It is customary that
command-line switches override environmental variables where there is a
conflict.

.. envvar:: PYTHONHISTFILE

If this is the name of a file, and :mod:`readline` is enabled, it will be
used as the history save file. The default is :file:`~/.python_history`.


.. envvar:: PYTHONHOME

Change the location of the standard Python libraries. By default, the
Expand Down
7 changes: 5 additions & 2 deletions Lib/site.py