Today's example of "you can just do things":
A colleague complained about Python's error message "TypeError: unhashable type" being hard to understand when trying to use eg a list as a dict key or set element. I also always have trouble explaining this problem to beginner students, so I filed an issue. Then
@vstinnerVictor Stinner π wrote a patch and opened a PR two hours later, which I reviewed and merged. Now:
![screenshot of Python console with the code:
d = {}
key = [1, 2, 2]
d[key] = 123
producing the error message:
TypeError: cannot use 'list' as a dict key (unhashable type: 'list')](https://files.mastodon.social/media_attachments/files/114/387/957/994/548/339/original/c2647b0aec827ca4.png)