Karl Richter added the comment:

@paul.j3 That's interesting [1]. Documenting argparse.register seems crucial to 
me (-> reopen or file a new request?). 

After dealing more with the very sophisticated and complex functionality of 
argparse I'm sure that this is the only use case where such an unintuitive 
result may happen, so it's worth adding an explicit negative example in the 
docs of argparse.add_argument with a hint to the docs about "way that argparse 
handles types".

----------
[1] (and a very good example for missing capabilities of Q&A sites with regard 
to the relation of votes of your much better answer and the one with the 
highest number of votes)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21208>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to