PyBeach 2026

Everything You Don't Need to Know About Classes in Python

What happens when you look up an attribute on a Python object? And how do methods actually work?

You don't need to understand most of Python's many class features in order to write object-oriented Python. But understanding classes more deeply can be helpful!

During this talk we'll expand our mental models of Python's classes by peeling back the layers behind Python's many class features. Along the way we'll take a brief tour through dunder methods, descriptors, metaclasses, and more.

It's time to get classy.

Trey Hunner

Trey helps Python developers level-up their skills through his Python Morsels learning platform and Python team trainings.

Trey Hunner is a Python Software Foundation Fellow, former PSF Director, one of the founding members of the PSF Code of Conduct workgroup, and a semi-regular attend of his local Python meetup in San Diego.

You can learn from Trey through his weekly Python tips newsletter.