[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2020-09-07 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2018-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: 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 i

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-04-17 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-04-02 Thread bagrat lazaryan
Changes by bagrat lazaryan : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-04-02 Thread bagrat lazaryan
bagrat lazaryan added the comment: well... ElementTree.py imports some c accelerators as can be seen at the end of the file. i have no idea how to get to those accelerators, and even if i had, i don't think i would make anything of them. as far as the pure python code concerns in the rest of El

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-01-08 Thread Stefan Behnel
Stefan Behnel added the comment: > My intuition tells me that lxml also handles this as expected, by accident > through iteration. And, obviously, it doesn't. It sorts, too. :) I'm ok with switching for both libraries. -- ___ Python tracker

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-01-08 Thread Stefan Behnel
Stefan Behnel added the comment: IMHO, it makes sense to support this. My intuition tells me that lxml also handles this as expected, by accident through iteration. Not sure how to do this correctly in ET, though. Special case dict? Or special case OrderedDict? Both would leave some reasonable

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-01-08 Thread bagrat lazaryan
New submission from bagrat lazaryan: xml.etree.ElementTree.ElementTree.write method (and, as a derivative, xml.etree.ElementTree.tostring function) sorts attributes in lexical order. while an admissible behavior instead of the randomness inherited from ordinary dict, this prevents a picky user