In object-oriented programming (OOP), an interface describes the methods a class must implement to play a specific role. This set of methods expresses the interface contract. Python has no dedicated syntax for interfaces, but it gives you two ...
In this quiz, you'll test your understanding of Implementing Interfaces in Python: ABCs and Protocols. By working through this quiz, you'll revisit how to model interfaces with abstract base classes and protocols, how to enforce method contracts, and ...
What's happening at EuroPython 2026? The conference celebrates its 25th anniversary this year in Kraków, Poland. This week on the show, organizers Mia Baji and Daria Linhart Grudzien join me to discuss this year's conference.
How can you easily reduce the size of a Python Docker container? What are the exceptions you should catch in your code? Christopher Trudeau is back on the show this week with another batch of PyCoder's Weekly articles and projects.