Learn Backend Development Part-Time, Online
Learn the Skills Netflix, Meta, and Capital One Actually Hire For
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Discover the power of Protocols in Python and their advantages over Abstract Base Classes in this 29-minute conference talk from EuroPython 2022. Explore the concept of Protocols, introduced in Python 3.8, and learn how they can improve code quality and maintainability. Delve into dynamic vs static typing, optional static typing, and structural subtyping. Gain practical insights through examples demonstrating how Protocols can simplify development and enhance code cleanliness. Understand potential pitfalls and best practices for implementing Protocols in your Python projects.
Syllabus
Introduction
Dynamic vs Static typing
Optional Static typing
Abstract based classes
Structural subtyping
Protocol pitfalls
Taught by
EuroPython Conference