[issue34160] ElementTree not preserving attribute order
Ned Batchelder
report at bugs.python.org
Sat Nov 10 09:46:27 EST 2018
Ned Batchelder <ned at nedbatchelder.com> added the comment:
Hi, this broke my tests, just as earlier comments predicted.
Can we get an optional argument to sort the keys? The json module lets us sort keys even though it's irrelevant to JSON. Being able to sort attributes would be a very useful addition to the prettyxml method.
----------
nosy: +nedbat
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34160>
_______________________________________
More information about the Python-bugs-list
mailing list