Skip to content
Discussion options

You must be logged in to vote

This is working as expected – dicts need a deterministic order during flattening in order for equality semantics of the tree structure to match equality semantics of the original object. In the case of OrderedDict, that deterministic order is inherent to the object; in case of a standard dict, that deterministic order comes from sorting the keys. Does that make sense?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@swampni
Comment options

Answer selected by swampni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants