On Tue, Aug 18, 2009 at 1:57 AM, Steven D'Aprano<ste...@remove.this.cybersource.com.au> wrote: > On Mon, 17 Aug 2009 21:45:57 -0700, naveen wrote: > >> Is it possible to split up a class definition over multiple files? > > Not exactly, but you can do variations of this: > > > In file A.py, create: > > class Parent: > def method(self): > return "Method" > > > In file B.py, do this: > > import A > class Child(B.parent):
class Child(A.Parent): -- http://mail.python.org/mailman/listinfo/python-list