Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

open() does not create parent directories either. And no any function in the 
stdlib which creates a file does it. It would be rather error-prone if they do, 
because you can create a file at wrong place.

So just create a directory if you need to, and let the code to raise an 
exception to report your errors.

----------
nosy: +serhiy.storchaka
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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

Reply via email to