diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-10-28 18:18:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 18:18:22 (GMT) |
commit | e3685fd5fdd8808acda81bfc12fb9702d4b59a60 (patch) | |
tree | 930b05ba14510edd10fbec2840ee3e953cae7e39 /Doc/library/xml.etree.elementtree.rst | |
parent | 18d57b4d6262bf96b5ac307bd84837c29ea04083 (diff) | |
download | cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.zip cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.tar.gz cpython-e3685fd5fdd8808acda81bfc12fb9702d4b59a60.tar.bz2 |
bpo-34160: Preserve user specified order of Element attributes (GH-10163)
Diffstat (limited to 'Doc/library/xml.etree.elementtree.rst')
-rw-r--r-- | Doc/library/xml.etree.elementtree.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index 0cb949a..aae8014 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -489,6 +489,10 @@ Functions *elem* is an element tree or an individual element. + .. versionchanged:: 3.8 + The :func:`dump` function now preserves the attribute order specified + by the user. + .. function:: fromstring(text) @@ -947,6 +951,10 @@ ElementTree Objects .. versionadded:: 3.4 The *short_empty_elements* parameter. + .. versionchanged:: 3.8 + The :meth:`write` method now preserves the attribute order specified + by the user. + This is the XML file that is going to be manipulated:: |