classification
Title: doc xml.etree.ElementTree.ElementTree.write does not mention attribute order
Type: enhancement Stage:
Components: Documentation Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: buhtz, docs@python
Priority: normal Keywords:

Created on 2021-01-21 21:13 by buhtz, last changed 2021-01-21 21:13 by buhtz.

Messages (1)
msg385448 - (view) Author: Christian Buhtz (buhtz) Date: 2021-01-21 21:13
The docs for 'xml.etree.ElementTree.ElementTree.write' in Python 3.7 (and possible earlier) does not say a word about the ordering of the attributes.

This makes unittesting hard.

But looking in the code tells me that the attributes are ordered lexically. Important to know. So please upgrade the docu about that.

In Python 3.8 the ordering behavior changed again but is mentioned in the docu. So no need to change in 3.8 or later.
History
Date User Action Args
2021-01-21 21:13:02buhtzcreate