Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'subject:adding': 0.07; 'subject:getting': 0.07; 'subject:help': 0.08; 'lawrence': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.11; 'args,': 0.16; 'exactly?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'keyword,': 0.16; 'subject:beginner': 0.16; 'subject:values': 0.16; 'then?': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'specify': 0.24; 'text.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'text': 0.33; 'subject:the': 0.34; 'subject:from': 0.34; 'but': 0.35; 'received:google.com': 0.35; '12,': 0.39; 'how': 0.40; 'show': 0.63; 'subject:. ': 0.67; '7:00': 0.84; 'common,': 0.84; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BTJnkYFc1+TOfQJSXBSbbxbkWYVEHVK2iZA8AtIMnFc=; b=BFVqdHsr7o6HeFxPkGvL+jX3676s47zK+MnESDvpd2p/nqP9Gnf2USUsOTJkhK+k2T 8LPrKE/A5bGq7HlWvuFgPg9TeyJUIxvdmpZ2hXDhAEc7nkD95w3ffqXjNE4rdu9ByznU 7FhbM1GMAoj3uB9tVgUsB/arEuDwf4MaG99O3YjqBjHK9T/y2VZWfCoR84gCO8rWcam5 chi+dmANxPZOrx46hST7YbbwoFM4GMNygF8QMPZrr5p1LbAAclW+vJoaBEwwHMR+7weE KcSMySh/MsMLXER5Q8UN199v1S+C/NiGhm1AHOvuH7zPe6/00rQ5VHGruECijOIpEm/p z2OQ== MIME-Version: 1.0 X-Received: by 10.68.228.97 with SMTP id sh1mr4464304pbc.50.1386792220562; Wed, 11 Dec 2013 12:03:40 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Dec 2013 07:03:40 +1100 Subject: Re: adding values from a csv column and getting the mean. beginner help From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386792229 news.xs4all.nl 2973 [2001:888:2000:d::a6]:45595 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61615 On Thu, Dec 12, 2013 at 7:00 AM, Mark Lawrence wrote: > I use the alternative X for a mandatory argument X. Also common, but how do you specify a keyword, then? Say you have a command with subcommands: $0 foo x y Move the foo to (x,y) $0 bar x y z Go to bar X, order a Y, and Z it [eg 'compress', 'gzip', 'drink'] How do you show that x/y/z are mandatory args, but foo/bar are keywords to be typed exactly? In some formats italicized text can make that distinction, but not in pure text. ChrisA