1 2 3 4 5 6 7 8 9 10 11
[~]|1> class Base(object): |.> def __init__(self, text): |.> print 'base', text |.> [~]|2> class Spam(Base): |.> def __init__(self, text): |.> print 'spam' |.> super(Spam, self).__init__(text) [~]|3> Spam('eggs') spam base eggs