Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
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. ---------- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34827> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com