Message400929
| 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. |
|