On 4 November 2010 23:20, Mac Ryan <quasipe...@gmail.com> wrote:

> My question boils down to: how can I expand the Namespace object in
> order to get a list of keyword arguments?
>

If "ns" is your Namespace object, then use ns.__dict__, which you can
directly pass to your commands, e.g.

do_stuff(**ns.__dict__)

I'll post a more complete answer if this isn't clear/obvious.

HTH

Walter
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to