Python program organization

Derek W whitedw at NOSPAMcox.net
Sat Feb 21 05:17:34 EST 2004


Hello all,

I have a few questions about the best way to organize a large Python 
program.  This would be a large program with a GUI interface, too large 
to be put all in one script file by any sane person.  I was wondering 
about how a Python programmer should organize the multiple python source 
files that will be needed by their program.  Is it proper to break the 
program up into modules and put all of the modules in a package even if 
the modules would be of little or no use to others (such as the program 
specific GUI code)?  Would this package then go under Python's 
site-packages directory when the program is installed?  Would 
distribution of a program like this use distutils?

Thank you,
Derek



More information about the Python-list mailing list