Extending classes __init__behavior for newbies
rantingrick
rantingrick at gmail.com
Sun Feb 13 17:32:09 EST 2011
More information about the Python-list mailing list
Sun Feb 13 17:32:09 EST 2011
- Previous message (by thread): Extending classes __init__behavior for newbies
- Next message (by thread): Extending classes __init__behavior for newbies
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): Extending classes __init__behavior for newbies
- Next message (by thread): Extending classes __init__behavior for newbies
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list