Skip to content

Option for acknowledging item ordering #361

@ianyoung

Description

@ianyoung

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions