Skip to content

Tag: Hashable

Specialize Your Own Collection in Python

Mapping, Sequence or Collection in Python: you choose the best one for the data structure you want to build. A simple explanation of everything you need.

Apr 20, 2019

Hashables in Python

What makes a Python object hashable, why lists aren't, how hash(), __hash__ and __eq__ work together, and how to make your own class hashable.

Nov 18, 2018