What Is Python’s “Self” Argument, Anyway?

A behind-the-scenes look into this well-known argument

Martin Heinz
Better Programming
Published in
5 min readSep 19, 2022

--

Photo by Niloofar Kanani on Unsplash

Every Python developer is familiar with the self argument, which is present in every* method declaration of every class. We all know how to use it, but do you really know what it is, why it's there, and how it works under the hood?

What We Already Know

--

--