Hashes for all pathlib.Path objects are identical
maggelus opened this issue · comments
maggelus commented
When hashing a pathlib.Path object, they all have the same hash value, regardless of the actual path.
To Reproduce
a = Path('testdir')
b = Path('testdir2')
a_hash = DeepHash(a)[a]
b_hash = DeepHash(b)[b]
assert a_hash != b_hash
Expected behavior
Hashes for different Paths should be different.
Sep Dehpour commented
Hi @maggelus
Thanks for the PR you made for this issue. Closing.