Don't forget Python supports multiple inheritance as well, which can be very
useful.

On Wed, Oct 14, 2009 at 2:53 PM, James Paige <[email protected]>wrote:

> On Wed, Oct 14, 2009 at 05:27:50PM -0400, Kris Schnee wrote:
> > This is more of a general Python question.
> >
> > [clip..]
> >
> > Seems cumbersome, doesn't it? I'm basically trying to give my new class
> > access to the neat functions while putting them into a separate module,
> > so that the main module isn't cluttered by them. Or should I rely on a
> > linear chain of inheritance, so that FancyClass is a subclass of
> > BasicClass from another module?
>
> Make FancyClass a subclass of BasicClass from another module. I do that
> frequently. Works great, very simple.
>
> ---
> James
>

Reply via email to