[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

paul j3 report at bugs.python.org
Sun Jul 6 07:56:56 CEST 2014


paul j3 added the comment:

Apart from sorting, `_get_kwargs` does little more than:

    return [k for k in action.__dict__.items() if not k[0].startswith('_')]

That is, it's the `items()` of the 'public' attributes of the action (or parser).  Those attributes are already accessible to the code that is using 'argparse'.

----------

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


More information about the Python-bugs-list mailing list