This talk shows some corners of Python dictionary data structure. It discusses quirks with dictionary keys hashing, flaws of overriding dicts and how to do it properly, shows a __missing__
magic method example and ways to update dict without overriding its keys. It also explains issues regarding hashing of mutable values.
Resources:
Presented at
- PyConPL 2019, September 2019
- Pykonik Tech Talks #43, March 2019
Authored by
- Dominik 'disconnect3d' Czarnota