Passing options between modules

Chris iamlevis3 at hotmail.com
Fri May 21 13:07:16 EDT 2004


I'm trying to come up with a not-so-ugly manner of passing many
command-line options between modules.

I have a Steering.py file, which contains my main() and handles the
getopts getting of several command-line options.  Since having 5-6
additional parameters for every class instantiation or function call
is obviously an ugly way to handle this, what would you folks
recommend as a superior option?  Maybe passing a dict of options to
each object/function?

Help on this topic is greatly appreciated.

Go Sox,
-cjl



More information about the Python-list mailing list