[issue28455] argparse: convert_arg_line_to_args does not actually expect self argument

R. David Murray report at bugs.python.org
Sun Oct 16 14:47:39 EDT 2016


R. David Murray added the comment:

The documentation assumes you know how python class methods work, but I agree that the wording is not entirely obvious even then and could be improved.  In particular it should make clear that the example shows how to define the function for subclassing or assignment to the class object.  If you assign it to the instance, as in your example, then indeed self does not get passed and you want a true single argument function.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list