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 <1541867097.09.0.788709270274.issue34160@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1541867097.09.0.788709270274.issue34160@psf.upfronthosting.co.za>
2018-11-10 16:24:57nedbatlinkissue34160 messages
2018-11-10 16:24:56nedbatcreate