I'm trying to use super() for a simple class hierarchy in this manner:
class Employee(object): def __init__(self, name): self.name = name class FullTime(Employee): def __init__(self, name, satOff, freeDays=[], alDays=[], programDays=[]): global satsOffDict global dayDict super(Employee, self).__init__(name) However, I'm getting this error:
TypeError: object.__init__() takes no parameters I've read that you need to make the parent object type object (new style classes) in order for super to work. If I change class Employee(object) to class Employee(), I get this error:
TypeError: must be type, not classobj What's going on?
__init__like that. That's just begging for interesting behavior ... stackoverflow.com/questions/1132941/…