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 xtreak
Recipients bagratte, eli.bendersky, martin.panter, scoder, xtreak
Date 2018-11-12.05:49:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542001791.18.0.788709270274.issue20198@psf.upfronthosting.co.za>
In-reply-to
Content
dictionary's insertion order is preserved in 3.6 and above. Hence sorting by lexical order was removed in issue34160 and there is a discussion in the same issue to add an option to provide sorted output.

As part of triaging I propose closing this issue since the changes were made in issue34160.

$ ./python.exe
Python 3.8.0a0 (heads/master:cd449806fa, Nov 12 2018, 09:51:24)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.etree.ElementTree import Element, tostring
>>> from collections import OrderedDict
>>> e = Element("tag", OrderedDict([("a", "a"), ("c", "c"), ("b", "b")]))
>>> tostring(e)
b'<tag a="a" c="c" b="b" />'
>>> e = Element("tag", dict([("a", "a"), ("c", "c"), ("b", "b")]))
>>> tostring(e)
b'<tag a="a" c="c" b="b" />'
History
Date User Action Args
2018-11-12 05:49:51xtreaksetrecipients: + xtreak, scoder, eli.bendersky, martin.panter, bagratte
2018-11-12 05:49:51xtreaksetmessageid: <1542001791.18.0.788709270274.issue20198@psf.upfronthosting.co.za>
2018-11-12 05:49:51xtreaklinkissue20198 messages
2018-11-12 05:49:50xtreakcreate