EuroPython 2021

8 August 2021

EuroPython 2021

This July I had the very nice opportunity to present a tutorial called The Anatomy of a Python Class at the EuroPython 2021 conference. The event was unsurprisingly held entirely online, but the organisation was really superb. I was particularly impressed by the diversity of people and topics covered during the conference. Some particular highlights for me were keynote presentations by Abigail Dogbe and David Beazley.

I would highly recommend participating in next year’s edition of EuroPython to be held in Dublin!

In case you are interested, I have put all of my tutorial materials on GitHub and I have included a discussions section in case you have any comments or questions.

Contents

Abstract

Classes are one of the fundamental building blocks of Python and are essential for object-oriented programming. In this tutorial we will explore how classes work and look at tips and tricks for getting the most out of them. By the end you should have, not only a much better understanding of what Python classes are, but also some new ideas for writing better code.

This first part of the tutorial presents some introductory and intermediate topics. The focus being on an intimate understanding of how classes work in Python.

The second part of the tutorial introduces some slightly more advanced topics.

Some fun exercises are scattered throughout the tutorial to keep things interesting.

The tutorial is aimed at intermediate Python users but should also be accessible to beginners.

Tutorial

The Anatomy of a Python Class

You can find all of the materials for this tutorial on GitHub.