We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a benedict dictionary d, invoking d.keypaths() will return all paths in a sorted order.
There are cases where this is an undesired behavior and is caused by kps.sort() in benedict.core.keypaths.py.
kps.sort()
I would propose a new parameter "sorted" to keypaths that allows to disable this line of code.
The text was updated successfully, but these errors were encountered:
@mucmch I agree with adding a "sorted" parameter to keypaths method (defaults to True for backward compatibility).
True
Do you want to submit a PR with a couple tests?
Sorry, something went wrong.
Did a simple implementation, but do not manage to commit to Github. I attached a patch file.
keypaths_order.patch
fabiocaccamo
No branches or pull requests
Given a benedict dictionary d, invoking d.keypaths() will return all paths in a sorted order.
There are cases where this is an undesired behavior and is caused by
kps.sort()
in benedict.core.keypaths.py.I would propose a new parameter "sorted" to keypaths that allows to disable this line of code.
Upvote & Fund
The text was updated successfully, but these errors were encountered: