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
chattr. I am looking for a single (user) configuration file or environment variable.chmodis the solution suggested by python devs in this bug report from a few weeks ago, although there is also some mention of~/.inputrcthere (there is noman readline, BTW, except for the library function).inputrcthough andchmoddoes not work for me either, the file gets modified anyway (Arch Linux). There exists aninfo inputrcpage, but I am generally not so happy with reading info pages as they are difficult to navigate through.