Trying to understand when to put the object argument in a class def and when not to. I have not found much about this on the web. Every time i try to use inheritance this causes major issues and i get all screwed up. Can someone explain please? Thanks
class cats():
def __init__(cats_name):
self.cats_name = cats_name
class cats(object):
def __init__(cats_name):
self.cats_name = cats_name
It seems like there is an issue when all your child sub classes have the object also. Python gets annoyed that there is more then one. So then i end up taking out the "object" from the other classes but that has side effects also.
Like for example, if you wanted to use one of those subclasses on its own later, now it has no object. Im missing something fundamental here.
All i know is "object" is like the base python class that lets your class become an object? Is that even right?