Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Explore the nuances of subclassing and composition in Python during this 45-minute conference talk from EuroPython 2023. Delve into the age-old debate of inheritance versus composition, examining how strict adherence to either approach can lead to challenges in code design. Discover the various types of subclassing through a Pythonic perspective, and learn to identify patterns and trade-offs in object-oriented programming. Gain confidence in making informed decisions about when to use subclassing for more Pythonic code and when composition can enhance clarity. Leave with a balanced, dogma-free understanding of these fundamental concepts to improve your Python programming skills.
Syllabus
Subclassing, Composition, Python, and You — Hynek Schlawack
Taught by
EuroPython Conference