Good with Computers

The Sixty North Blog

Python's super() Explained

A series of 3 articles:

  1. Python’s super(): Not as Simple as You Thought
  2. Method Resolution Order, C3, and Super Proxies
  3. The super() Mystery Resolved

Description

You probably already know how to use Python’s super() to call base-class implementations of methods. But do you really know what it’s doing? The details of super() are elegant, interesting, and powerful, and while super() is probably more complex than you expect, it’s also surprisingly easy to understand. In this series we’ll explore super() by first uncovering a bit of a mystery. To resolve the mystery, we’ll look a bit under Python’s hood to see how super() really works.

Stay in Touch

Our business hours are 08:00 to 16:00 CET/CEST.