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 <1552771130.51.0.755445486426.issue34160@roundup.psfhosted.org>
In-reply-to
Content
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.
History
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: <1552771130.51.0.755445486426.issue34160@roundup.psfhosted.org>
2019-03-16 21:18:50scoderlinkissue34160 messages
2019-03-16 21:18:50scodercreate