New submission from Aurora <[email protected]>:
On a typical Linux system, if you run 'chattr +i /home/user/.python_history',
and then run python, then exit, the following error message will be printed out:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site.py", line 446, in write_history
readline.write_history_file(history)
OSError: [Errno -1] Unknown error -1
With a simple improvement, the site module can check and suggest the user to
run 'chattr -i' on the .python_history file.
Additionaly, I don't know if it's a good idea to automatically run 'chattr -i'
in such a situation or not.
----------
components: Library (Lib)
messages: 360790
nosy: opensource-assist
priority: normal
severity: normal
status: open
title: .python_history write permission improvements
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39468>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com