constructor chaining?

Mark Nenadov mnenadov at
Tue Jul 24 14:31:41 CEST 2001

In article <6Sd77.62285$2V.13130988 at>, "Daniel
Ellison" <daniel at> wrote:

> This is my first post here; I've just started looking into Python and so
> far like what I see.  To answer your question, you simply call Media's
> __init__ constructor from within Book's __init__ constructor:  class
> Book(Media):
>     def __init__(self):
>         Media.__init__(self)
>         ...

Awesome. Thank you very much, that was exactly what I was looking for.

~Mark Nenadov (author/editor for

More information about the Python-list mailing list