[Baypiggies] importing variables into python namespace using argparse module

Simeon Franklin simeonf at gmail.com
Thu Sep 8 00:36:38 CEST 2011


On Wed, Sep 7, 2011 at 3:34 PM, Abhishek Pratap <abhishek.vit at gmail.com>wrote:

> **Here is what I dont understand.**
>
> Does this mean all the arguments returned by parser.parse_args() are a
> list even if they have one variable. May be I am missing a concept
> here.
>
>
Yes - but only if you specify the nargs argument when creating the argument.

-regards
Simeon Franklin
209 846-2151
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20110907/155709b2/attachment.html>


More information about the Baypiggies mailing list