[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Function Inheritance



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