Extending classes __init__behavior for newbies
rantingrick at gmail.com
Sun Feb 13 23:32:09 CET 2011
On Feb 13, 4:27 pm, James Mills <prolo... at shortcircuit.net.au> wrote:
> > class FasterShip(Ship):
> > def __init__(self, speed=0, **kwargs):
> > Ship.__init__(self, **kwargs)
> > self.speed = speed
> What's the difference between calling the base
> class's constructor directly and using the super type ?
well for starters...
* confusion and clarity
* liberal and conservative
* excess and moderation
... just to name a few.
More information about the Python-list