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 <[email protected]>
<http://bugs.python.org/issue10190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com