Message400929
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. |
|
Date |
User |
Action |
Args |
2021-09-02 15:43:59 | Tiger-222 | set | recipients:
+ Tiger-222, rhettinger, vstinner, ezio.melotti, Arfrever, methane, serhiy.storchaka, wbolster, josh.r |
2021-09-02 15:43:59 | Tiger-222 | set | messageid: <1630597439.5.0.607626621251.issue23493@roundup.psfhosted.org> |
2021-09-02 15:43:59 | Tiger-222 | link | issue23493 messages |
2021-09-02 15:43:59 | Tiger-222 | create | |
|