Interfaces, mixins and building powerful custom data structures in Python

from blog Redowan's Reflections, | ↗ original
Imagine a custom set-like data structure that doesn’t perform hashing and trades performance for tighter memory footprint. Or imagine a dict-like data structure that automatically stores data in a PostgreSQL or Redis database the moment you initialize it; also it lets you to get-set-delete key-value pairs using the usual...