super, Python’s most misunderstood feature.

Python’s super builtin in very misunderstood. It does not mean “parent“. It means “next in line“. What line? The Method Resolution Order (MRO) of an object, which defines the search order for attribute lookups. super() uses some very sneaky techniques, such as examining the current stack frame, and object proxying. All this is explained in great detail, for both single and multiple inheritance, and a pure Python implementation of super is given. CONTEST CURRENTLY CLOSED! THE WINNERS HAVE BEEN CONTACTED, CHECK YOUR COMMENT TO SEE! OFFICIAL CONTEST RULES: 1. All entries must comply with the YouTube community guidelines ( ) and YouTube Terms of Service ( Entries that violate YouTube guidelines are automatically disqualified. 2. YouTube is not a sponsor of the contest and viewers are required to release YouTube from any liability related to the contest. 3. Pri
Back to Top