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 zachrahan
Recipients Aaron Hall, josh.r, tanzer@swing.co.at, zachrahan
Date 2018-05-21.07:29:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526887760.72.0.682650639539.issue25457@psf.upfronthosting.co.za>
In-reply-to
Content
Well, "wontfix" would be appropriate in the context of deprecating the sort_keys option (over the course of however many releases) and documenting that the new procedure for getting JSON output in a specific order is to ensure that the input dict was created in that order.

Certainly for regression testing, sort_keys is no longer needed, but that's not the only reason people are using that option. (It's certainly not why I use the option -- my use stems from sort_keys improving human readability of the JSON.)

But outside of deprecating sort_keys wholesale, it is still a bug that sort_keys=True can cause an error on input that would otherwise be valid for json.dump[s].
History
Date User Action Args
2018-05-21 07:29:20zachrahansetrecipients: + zachrahan, josh.r, tanzer@swing.co.at, Aaron Hall
2018-05-21 07:29:20zachrahansetmessageid: <1526887760.72.0.682650639539.issue25457@psf.upfronthosting.co.za>
2018-05-21 07:29:20zachrahanlinkissue25457 messages
2018-05-21 07:29:20zachrahancreate