-
-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
I've noticed that the hash of an object is the same if a list contained in the object has items moved around. E.g.
obj1 = {"key": [{1: "one"},{2: "two"}]}
obj2 = {"key": [{2: "two"},{1: "one"}]}
Both of the above result in the same hash.
Strictly speaking this should be considered a change and should result in a different hash.
Describe the solution you'd like
I'd ideally like the default handling to acknowledge item ordering and result in a different hash value.
Describe alternatives you've considered
Failing it being the default handling, it would be good if there was an option to set item ordering acknowledgements, resulting in a different hash value.
Metadata
Metadata
Assignees
Labels
No labels