by Andy Fundinger
This talk is a destructive examination of the workings of Python's inheritance model. We'll learn how it works by breaking it. By breaking inheritance in various ways, we will learn about the hooks that Python gives us to interact with it. These include using the metaclass to alter the class during construction, and two dunder methods which serve as useful hooks. Particular examples will include: Implementing interfaces in Python, turning inheritance off in favor of explicit reuse, and simplifying classes by disabling a selection of features you don't wish to use. While none of these are meant to be particularly useful implementations, they make good use cases to show the machinery.
About the Author
Talk Details
Date: Sunday Nov. 17
Location: Concert Hall
Begin time: 11:40
Duration: 25 minutes