h2non / jsonpath-ng

Finally, a JSONPath implementation for Python that aims to be standard compliant. That's all. Enjoy!
Apache License 2.0
593 stars 86 forks source link

Make path instances hashable #128

Closed michaelmior closed 1 year ago

michaelmior commented 1 year ago

Path instances are currently not hashable which limits their usability. Since the class structures are fairly simple, making them hashable was fairly straightforward. Currently this is tested by just adding a line which checks that parsing twice yields the same hash for existing tests.