This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bubthegreat
Recipients bubthegreat
Date 2018-09-28.05:44:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There was an issue to make argparse.Namespace iterable with a specific intent on being able to convert it to a dictionary (  Additionally there was another improvement request to make it accessible like a dictionary.  (

While vars(args) and args.thing do accomplish the needs, I'm really lazy, and would like the object to be more accessible - for instance, if I will always need to access every attribute (because I make a small namespace that fits a simple script, making it iterable would be convenient.  It's also more convenient to use the typical **thing syntax for passing it into functions if all the attributes are required for different things.  This keeps code within the functions that would use it simpler, because we no longer need to reference args.thing, we can reference thing directly within the function it's been passed to.  vars(args) does accomplish this, but it is arguably not as familiar for folks as the more "familiar" syntax of **args.
Date User Action Args
2018-09-28 05:44:34bubthegreatsetrecipients: + bubthegreat
2018-09-28 05:44:33bubthegreatsetmessageid: <>
2018-09-28 05:44:33bubthegreatlinkissue34827 messages
2018-09-28 05:44:33bubthegreatcreate