This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients Mariatta, dfrojas, eli.bendersky, matrixise, nedbat, rhettinger, scoder, serhiy.storchaka, sivert, taleinat, vstinner
Date 2019-03-16.21:18:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ned, would it solve your problem to write a helper function that walks the tree and sorts the attrib dicts? That would also work in all existing CPython versions (because they already sort attributes anyway), for both ElementTree and lxml, and you wouldn't have to pass a new option into the serialiser conditionally based on the running Python version.
Date User Action Args
2019-03-16 21:18:50scodersetrecipients: + scoder, rhettinger, vstinner, taleinat, nedbat, eli.bendersky, serhiy.storchaka, matrixise, sivert, Mariatta, dfrojas
2019-03-16 21:18:50scodersetmessageid: <>
2019-03-16 21:18:50scoderlinkissue34160 messages
2019-03-16 21:18:50scodercreate