[issue11076] Iterable argparse Namespace

Steven Bethard report at bugs.python.org
Fri Feb 4 22:56:02 CET 2011


Steven Bethard <steven.bethard at gmail.com> added the comment:

What's wrong with `vars(args)`? That's the standard way of getting a dict from an object, no?

Note that you're not always guaranteed to get a Namespace back (e.g. if you pass the namespace= argument to parse_args), and I'd generally like to keep Namespace as simple as possible.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11076>
_______________________________________


More information about the Python-bugs-list mailing list