Mickaël Schoentgen <cont...@tiger-222.fr> added the comment: I am wondering why the change was not backported to 3.6 and 3.7? It introduces different behavior.
For instance, I need to keep duplicate keys from JSON data (because it is allowed by the RFC and it is a missing feature for tools such like HTTPie). Have a look at repro-sorting.py. On Python 3.6 and 3.7, the output is not sorted: { "dps": { "1630064726": 5.0, "1630064726": 3.0, "1630064726": 6.0 } } Starting with Python 3.8, the output is sorted as expected: { "dps": { "1630064726": 3.0, "1630064726": 5.0, "1630064726": 6.0 } } I could open pull requests for both 3.6 and 3.7 branches, if you think it is worth and allowed by the current maintenance status. ---------- nosy: +Tiger-222 Added file: https://bugs.python.org/file50256/repro-sorting.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue23493> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com