[issue29632] argparse values for action in add_argument() should be flags instead of (or in addition to) strings

Pedro report at bugs.python.org
Fri Mar 24 17:54:26 EDT 2017


Pedro added the comment:

I guess I'm a little allergic to magic strings. I think there is value in greater consistency across modules, but agree it's not a big deal because the Action classes are already accessible that way.

I was unaware of the details behind `action` and actually just found an opportunity to use an Action subclass, so thank you for clarifying.

----------

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


More information about the Python-bugs-list mailing list