One class one file?

D'Arcy J.M. Cain darcy at druid.net
Fri Oct 16 21:42:14 EDT 2009


On Fri, 16 Oct 2009 19:53:37 -0400
Someone Something <fordhaivat at gmail.com> wrote:
> I'm trying write a program that's going to be more than 100 lines or so but
> I need it all in one class. Is there a painless way to have one class in two
> files?

I don't understand what the problem is with a 100 line class but if it
is an absolute necessity to split it (e.g. homework assignment) think
about inheritance.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list