summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.etree.elementtree.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-10-28 18:18:22 (GMT)
committerGitHub <noreply@github.com>2018-10-28 18:18:22 (GMT)
commite3685fd5fdd8808acda81bfc12fb9702d4b59a60 (patch)
tree930b05ba14510edd10fbec2840ee3e953cae7e39 /Doc/library/xml.etree.elementtree.rst
parent18d57b4d6262bf96b5ac307bd84837c29ea04083 (diff)
downloadcpython-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.rst8
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::