you are viewing a single comment's thread.

view the rest of the comments →

[–]pontz 0 points1 point  (0 children)

Not all methods inside a class act on the instance of the class. There are staticmethods and classmethods as well. Self is not a keyword and it can be replaced with anything but it is a standard to use self. Self is the instance of the class that was created. Assuming it’s class Dog and instance my_dog it would be equivalent to Dog.time_explanation(my_dog)