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 Tiger-222
Recipients Arfrever, Tiger-222, ezio.melotti, josh.r, methane, rhettinger, serhiy.storchaka, vstinner, wbolster
Date 2021-09-02.15:43:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630597439.5.0.607626621251.issue23493@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-02 15:43:59Tiger-222setrecipients: + Tiger-222, rhettinger, vstinner, ezio.melotti, Arfrever, methane, serhiy.storchaka, wbolster, josh.r
2021-09-02 15:43:59Tiger-222setmessageid: <1630597439.5.0.607626621251.issue23493@roundup.psfhosted.org>
2021-09-02 15:43:59Tiger-222linkissue23493 messages
2021-09-02 15:43:59Tiger-222create