Christian Heimes <li...@cheimes.de> added the comment:

The code works as intended and design.

The keylog file is created in append-only mode when the file does not exist 
yet. A missing, inaccessible, or read-only directory or an invalid path raise 
an exception by design. Errors should not pass silently. The error informs the 
user of a misconfiguration.

Would accept a documentation update and a better error message for missing 
parent directory. Your proposed workaround is not acceptable. Python would no 
longer create a new keylog file and user would no longer get a hint that their 
configuration is wrong.

----------
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to