[issue34160] ElementTree not preserving attribute order

STINNER Victor report at bugs.python.org
Sun Nov 11 19:07:13 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I like the idea of having an opt-in option to get Python 3.7 behavior in Python 3.8, sort=True. It would be a new parameter in Python 3.8, right?

It makes sense to me to ask explicitly to sort attributes, especially since Python decided to no longer sort by default :-)

Maybe some people prefer sorting to get a more deterministic output for things like https://reproducible-builds.org/

----------

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


More information about the Python-bugs-list mailing list