#hashing

[ follow ]
fromNedbatchelder
1 week ago
Software development

A testing conundrum

A fingerprinting Hasher class handles nested Python data by canonicalizing unordered containers to produce stable hashes, but property-based testing with Hypothesis proved challenging.
fromThepythoncodingstack
1 month ago

The Misunderstood Hashable Types and Why Dictionaries Are Called Dictionaries * [Club]

Pick up a dictionary. No, not that one. The real dictionary you have on your bookshelf, the one that has pages made of paper, which you use to look up the meaning of English words. Or whatever other language. But let's assume it's an English dictionary. Now, look up zymology. I'll wait... Done? It probably didn't take you too long to find zymology.
Python
[ Load more ]