define class over 2 files

naveen naveen.garg at gmail.com
Tue Aug 18 03:04:56 EDT 2009


> > Is it possible to split up a class definition over multiple files?
>
> Not exactly, but you can do variations of this:
... [subclass a class]
> Steven

Thanks Steven.
I guess I will just preprocess the script:
<class.sh>
cat partA.py > class.py
cat partB >> class.py
python class.py
</class.sh>




More information about the Python-list mailing list