TLDR Web Dev · ARTICLES & TUTORIALS
UNCOMMON USES OF PYTHON IN COMMONLY USED LIBRARIES
Summary from the TLDR Web Dev newsletter
Common Python libraries often use Python in uncommon ways. `super()` in Python base classes is often used for cooperative multiple inheritance, and mixins are strategically applied for modularizing optional features. Relative imports are used for correct package resolution, and the `__init__.py` file doesn't always have the same purpose across packages.