Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #84898

Re: how to parse sys.argv as dynamic parameters to another function?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'parameters': 0.04; 'assuming': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'accepts': 0.16; 'argument.': 0.16; 'function?': 0.16; 'subject:parameters': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'parse': 0.24; 'skip': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'robert': 0.30; 'message-id:@mail.gmail.com': 0.30; 'another': 0.32; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'list': 0.37; 'sure': 0.39; 'how': 0.40; '30,': 0.65; 'to:addr:gmail.com': 0.65; '2015': 0.84
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:to :cc:content-type; bh=BBCsscXgNGifrGyKfKm9aXFz8/3LGwsPh6y/PJDSnUk=; b=Hv/Cslubvokvm4rIwU21MT4b27NPZtdXaf2BDHpEwn2jv8Yq/4nKneDM86ErXxm5/F /IzDVqERpTu3P6cDbbOavu6U0EV75rD0wyzH7b+ZQ82y9PCrxkM7iq385w2mKYuuaXZ9 XN1vp/pPT47eS3cHz0yqGu8wcOh0NuXLrsNXUnKg9nmvAY/Q+OWoN7v5RkbmaDZBt5q+ tGCQ+zOGj26IcUdoVvdhQZfKX4lJweVv5AylTsV3kNd1SZAsNtVsBU8W4lYe6OuSgOr2 bxfcNXcGeeOIseGRMVyQ5khhxWCzHa//TEbmrEpvmZARrUnh3pT70aNgfo0/bfI8k9kq /P1g==
MIME-Version 1.0
X-Received by 10.202.90.139 with SMTP id o133mr3789343oib.99.1422634584237; Fri, 30 Jan 2015 08:16:24 -0800 (PST)
In-Reply-To <baa4011f-0745-4f8b-a6f5-fc242a886d78@googlegroups.com>
References <baa4011f-0745-4f8b-a6f5-fc242a886d78@googlegroups.com>
Date Fri, 30 Jan 2015 10:16:24 -0600
Subject Re: how to parse sys.argv as dynamic parameters to another function?
From Skip Montanaro <skip.montanaro@gmail.com>
To Robert Chen <robertchen117@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18310.1422634586.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1422634586 news.xs4all.nl 2851 [2001:888:2000:d::a6]:51620
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:84898

Show key headers only | View raw


On Fri, Jan 30, 2015 at 10:09 AM, Robert Chen <robertchen117@gmail.com> wrote:
>
> how to parse sys.argv as dynamic parameters to another function?
>
>
> fun(sys.argv)


Not sure what you mean by "dynamic", but I think you already have it,
assuming fun is a function which accepts a single list of strings as
its argument.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to parse sys.argv as dynamic parameters to another function? Robert Chen <robertchen117@gmail.com> - 2015-01-30 08:09 -0800
  Re: how to parse sys.argv as dynamic parameters to another function? Skip Montanaro <skip.montanaro@gmail.com> - 2015-01-30 10:16 -0600
  Re: how to parse sys.argv as dynamic parameters to another function? Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-30 09:28 -0700
  Re: how to parse sys.argv as dynamic parameters to another function? Ned Batchelder <ned@nedbatchelder.com> - 2015-01-30 14:05 -0500

csiph-web