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 serhiy.storchaka
Recipients bubthegreat, serhiy.storchaka
Date 2018-09-28.06:08:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
issue8982 is not about making argparse.Namespace iterable, it is about better documenting it.

issue8979 was rejected for several reasons which are still valid.

For making **args working, args shouldn't be iterable, it should have the keys() method. And this will conflict with the --keys option.

Python is not a JavaScript. Objects and dictionaries are different things here. If you want to convert argparse.Namespace to dict, vars(args) is the One Obvious Way. It is officially documented.
Date User Action Args
2018-09-28 06:08:56serhiy.storchakasetrecipients: + serhiy.storchaka, bubthegreat
2018-09-28 06:08:56serhiy.storchakasetmessageid: <>
2018-09-28 06:08:55serhiy.storchakalinkissue34827 messages
2018-09-28 06:08:55serhiy.storchakacreate