[New-bugs-announce] [issue45360] xml.etree.ElementTree: add feature in write to create directories also like mkdir -p

Terunobu Inaba report at bugs.python.org
Mon Oct 4 02:07:10 EDT 2021


New submission from Terunobu Inaba <incredibleteru at gmail.com>:

In the xml.etree.ElementTree module, the function "write(args)" (https://docs.python.org/ja/3/library/xml.etree.elementtree.html) does not seem to have a function like "-p" in "mkdir -p" in UNIX system, i.e., it will raise an error when some directories in the path argument do not exist in your PC.

I find this a bit uncomfortable. So, I would like to extend this function to be able to create directories only if they does not already exist.

----------
components: Library (Lib)
messages: 403120
nosy: i11u
priority: normal
severity: normal
status: open
title: xml.etree.ElementTree: add feature in write to create directories also like mkdir -p
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45360>
_______________________________________


More information about the New-bugs-announce mailing list