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

2016-10-17 Thread siccegge
siccegge added the comment: Looks quite helpfull indeed to me! Thanks! -- ___ Python tracker ___ ___

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

2016-10-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks! I removed the import statement and simplified the last sentence a bit. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.4

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

2016-10-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f8f7403881f by Berker Peksag in branch '3.5': Issue #28455: Clarify example of overriding the convert_arg_line_to_args method https://hg.python.org/cpython/rev/4f8f7403881f New changeset 0b29adb5c804 by Berker Peksag in branch '3.6': Issue #28455:

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

2016-10-16 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hello, I updated the documentation with an example of how to override ArgumentParser class. Hope this is a clearer than before. Please review. Thanks :) -- keywords: +patch nosy: +Mariatta Added file:

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

2016-10-16 Thread R. David Murray
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

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

2016-10-16 Thread siccegge
New submission from siccegge: Hi! Both the 3.4 version and the current version of python documentation wrt the argparse module imply convert_arg_line_to_args replacements needs to accept two arguments while it acutally only works with one. (Not completely sure about details but documentation