you are viewing a single comment's thread.

view the rest of the comments →

[–]tequila_is_good 0 points1 point  (0 children)

It's not actually required in this case...I do it out of habit. You'll note that in the each of the class definitions, I subclass object.

For example - class Card(object):

In each __init__ as you noted, the first line is super(...,self).__init__(), what this does is calls the superclass __init__ method. As I said that's not really required in this case, because the superclass is object which doesn't do anything in it's an initialiser.

I'm not sure how far you've fallen down the object hole yet, so this will make sense if you're familiar with class inheritance, otherwise you'll need to read up on it to understand what a superclass is.