[Tutor] inheritance and super() function in python

2014-04-22 Thread Jorge Leon
Good day, I have programmed a base class for an environment I have with no problem, but when it comes to referencing the base class's constructor in the derived class's constructor I have been getting errors: *TypeError: Error when calling the metaclass bases* *module.__init__() takes at mos

Re: [Tutor] inheritance and super() function in python

2014-04-22 Thread Jorge Leon
and function overloading. Regards, Jorge On Tue, Apr 22, 2014 at 3:54 PM, Dave Angel wrote: > Jorge Leon Wrote in message: >> > > I think Steven has nailed your main problem, but I have two other > suggestions: > > Use text mail, not html. This is a text list, and it c

Re: [Tutor] inheritance and super() function in python

2014-04-23 Thread Jorge Leon
> class Cylinder(Obstacle): >def __init__(self,position, height, radius): >super(Obstacle,self).__init__(position) > > But it looks to me like the last line should be > super(Cylinder, self).__init__(position) > Hey, thanks again for the help and sorry about all the format err