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

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Dec 11 21:00:27 CET 2013


On 11/12/2013 19:46, Chris Angelico wrote:
> On Thu, Dec 12, 2013 at 6:41 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
>>> Square brackets in a usage description often mean "optional". You may
>>> want to be careful of that. There's no really good solution though.
>>
>> There is, https://pypi.python.org/pypi/docopt/0.6.1 :)
>
> That appears to use <x> for a mandatory argument x, which is then
> slightly ambiguous with shell redirection. But that's the best
> notation I've ever seen for distinguishing mandatory args from fixed
> keywords.
>
> CrisA
>

I use the alternative X for a mandatory argument X.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list