Making hashable objects PREMIUM

Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
6 minute read
Python Morsels
Watch as video

How can you make your Python objects hashable?

Objects are hashable by default

Here's a [class][] called Thing:

```python class Thing:

def __init__(self, name, color="purpl...
Write more Pythonic code

Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.