How can I disable the new history feature in Python 3.4?
15
votes
9
answers
14442
views
Since upgrading to Python 3.4, all interactive commands are logged to
~/.python_history
. I don't want Python to create or write to this file.
Creating a symlink to /dev/null
does not work, Python removes the file and recreates it. The documentation suggests to delete the sys.__interactivehook__
, but this also removes tab-completion. What should be done to disable writing this history file but still preserve tab-completion?
Additional details:
- Distro: Arch Linux x86_64
- readline 6.3-3
- python 3.4.0-2
Asked by Lekensteyn
(21600 rep)
Mar 25, 2014, 03:38 PM
Last activity: Jun 19, 2025, 02:52 AM
Last activity: Jun 19, 2025, 02:52 AM