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 nedbat
Recipients dfrojas, eli.bendersky, nedbat, rhettinger, scoder, serhiy.storchaka, taleinat, vstinner
Date 2018-11-10.16:24:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I can see that there are ways that I can change my tests.  I see that there are third-party libraries that can help me with this.

But changing the behavior of the standard library, without a way to retain the old behavior, and asking people to adapt by changing their test suites, seems a bit cavalier.

Why not add an option to keep the sorting that the standard library has always had?  I'll even be OK with changing the default behavior to unsorted, just give me a way to explicitly keep the behavior its always had in the past.

The discussion so far has 1) hypothesized that test suites would be broken, and 2) claimed that no one needs the output in sorted order.  I can tell you that my test suite is broken, and that removing the sorted order is what broke it.

The json module has the option to sort keys.  toprettyxml already has options well outside the needs of XML semantics (indent and newl).

Let's honor Python's tradition of standard library stability, and give me a way to keep the behavior I used to have.
Date User Action Args
2018-11-10 16:24:57nedbatsetrecipients: + nedbat, rhettinger, scoder, vstinner, taleinat, eli.bendersky, serhiy.storchaka, dfrojas
2018-11-10 16:24:57nedbatsetmessageid: <>
2018-11-10 16:24:57nedbatlinkissue34160 messages
2018-11-10 16:24:56nedbatcreate