self

The name, by convention, of a method's first parameter, which receives the instance the method was called on.

In more detail

dog.speak() is really Dog.speak(dog): Python fills in self for you, which is why it is listed in the definition but not in the call. Instance attributes are reached through it, as self.name.

Related terms

Taught in

References

Certification courses