adding values from a csv column and getting the mean. beginner help

Christopher Welborn cjwelborn at live.com
Wed Dec 11 19:49:16 EST 2013


On 12/11/2013 01:41 PM, Mark Lawrence wrote:
> On 11/12/2013 19:22, Chris Angelico wrote:
> There is, https://pypi.python.org/pypi/docopt/0.6.1 :)
>

+1 for docopt. It makes everything very clear. Just type out your usage 
string, and then run docopt(usage_str) on it to get a dict of your args. 
When I saw the video at http://docopt.org my jaw dropped. I couldn't 
believe all of the arg parsing junk I had been writing for even the 
smallest scripts. The other arg parsing libs make it easier than 
manually doing it, but docopt is magic.


-- 

- Christopher Welborn <cjwelborn at live.com>
   http://welbornprod.com




More information about the Python-list mailing list