[issue16799] start using argparse.Namespace in regrtest

Serhiy Storchaka report at bugs.python.org
Fri Aug 16 20:13:34 CEST 2013


Serhiy Storchaka added the comment:

Thank you for the review Eli. Could you please review issue17974 while I will write tests?

As for a duplication I think about using vars():


def main(tests=None, testdir=None, verbose=0, quiet=False, ...):
    return _main(**vars())

def _main(tests, testdir, **kwargs):
    ns = argparse.Namespace(**kwargs)
    ...

----------

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


More information about the Python-bugs-list mailing list