On 2013-10-24 08:38, Paradox wrote:
I am trying to learn about argparse and how best to incorporate it
into my scripts.  I am using Python 2.7.5 on Ubuntu 13.10.

It seems from the argparse tutorial that all the arguments are
processed as global variables.  Is that the standard way to do it or
do you normally (when doing real projects and not writing tutorials)
process the arguments in the main loop of the script?


Some one on this list recently recommended docopt rather than argparse. I've been playing with it and find it far superior although there are still a few issues that I haven't figured out.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to