Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect: Sort dictionary keys when possible #4181

Merged
merged 2 commits into from Oct 25, 2017

Conversation

mitya57
Copy link
Contributor

@mitya57 mitya57 commented Oct 22, 2017

I got this bug report in Debian: https://bugs.debian.org/877637.

This pull request should fix that bug, now dictionary keys will be sorted if possible. If not, the generic repr() implementation is used.

This should also help for finding items in large dictionaries.

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add testcase for this?

@tk0miya tk0miya added this to the 1.6.6 milestone Oct 23, 2017
This should help for reproducible builds and for finding items in large
dictionaries.
@mitya57
Copy link
Contributor Author

mitya57 commented Oct 23, 2017

@tk0miya Done.

@tk0miya tk0miya merged commit f8c8a0e into sphinx-doc:stable Oct 25, 2017
@tk0miya
Copy link
Member

tk0miya commented Oct 25, 2017

Thanks!

tk0miya added a commit that referenced this pull request Oct 25, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants