[docs] [issue13540] Document the Action API in argparse
Terry J. Reedy
report at bugs.python.org
Mon Dec 12 23:58:24 CET 2011
Terry J. Reedy <tjreedy at udel.edu> added the comment:
The doc specified the Action API as the interface inherited from argparse.Action plus the addition of a custom __call__ method with 4 params (5 with self) as described. That seems mostly adequate to me, unless there is something missing in the parameter descriptions.
I agree that it should be stated if one should pass the class rather than an instance thereof. (But classes are objects, so that is not a 'contradiction'.) If the example is in error, it should be fixed.
Python tracker <report at bugs.python.org>
More information about the docs