Question about argparse and namespace

Kevin Anthony kevin.s.anthony at gmail.com
Wed May 23 16:36:59 EDT 2012


the documentation says argparse.prase_args creates a new empty namespace,
but if i pass it a existing namespace, it seems to append the arguments to
the existing namespace
An example is if it's part of a class, calling
parser.parse_args(namespace=self) doesn't seem to have any ill effects. Is
this a good idea?  is there a better way of doing this?


-- 
Thanks
Kevin Anthony

Do you use Banshee?
Download the Community Extensions:
http://banshee.fm/download/extensions/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120523/40dec07d/attachment.html>


More information about the Python-list mailing list