This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients i11u, serhiy.storchaka
Date 2021-10-04.10:50:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633344617.73.0.165957822506.issue45360@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-04 10:50:17serhiy.storchakasetrecipients: + serhiy.storchaka, i11u
2021-10-04 10:50:17serhiy.storchakasetmessageid: <1633344617.73.0.165957822506.issue45360@roundup.psfhosted.org>
2021-10-04 10:50:17serhiy.storchakalinkissue45360 messages
2021-10-04 10:50:17serhiy.storchakacreate