web hosting and development forums
Web Design and Development Forums Archive


Index - Python programming forum

what is the better way to store?


Post reply

I am writing a code that would take in a lot of command line arguments some of them are switches et. al. What is the better way to store all those command line options and pass them between different functions and classes (a global variable [dictionry]) or a class and have member methods ?
amoralis, depends on the situation. both have downsides and conveniences.
A class would be better for testing/manipilating but would require some more time to be implemented.




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com