On Feb 13, 4:00 pm, James Mills <prolo...@shortcircuit.net.au> wrote:
> class FasterShip(Ship): > > def __init__(self, l=0,b=0,t=0,name='', speed=0): > super(FasterShip, self).__init__(l, b, t, name) > > self.speed = speed Did everyone miss the fact that this inheritance is unnecessary? Considering the Ship class has an attribute "speed" that will be affected (either directly or indirectly) by simply modifying it? faster_ship = Ship() faster_ship.speed = someFasterSpeed -- http://mail.python.org/mailman/listinfo/python-list