1
Scripting Languages / Re: [Python] variable question
« on: February 21, 2013, 01:45:47 pm »
Sounds fair. Inexperienced people use unneeded code indeed.
Sometimes I'd like my code to be maintainable and extendable. argparse gives me a nice api to handle long and complicated command line options. sys does not.
For this short example sys.argv works fine, but learning something which is maintainable in the future when your projects get bigger could be useful.
Jay
Sometimes I'd like my code to be maintainable and extendable. argparse gives me a nice api to handle long and complicated command line options. sys does not.
For this short example sys.argv works fine, but learning something which is maintainable in the future when your projects get bigger could be useful.
Jay