define class over 2 files

Xavier Ho contact at
Tue Aug 18 06:58:58 CEST 2009

On Tue, Aug 18, 2009 at 2:45 PM, naveen <naveen.garg at> wrote:

> Is it possible to split up a class definition over multiple files?
> -

Answer in short, I don't think so.

 Now why would you want to do that?

There is another solution - have a main class for shared methods, and have
other classes [in different files, perhaps] inherit from it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list