[issue15935] clarify argparse docs re: add_argument() type and default arguments
New submission from Chris Jerdonek: This issue is to clarify in the documentation the argparse behavior for which tests were added in issue 15906. The behavior involves when the type callable should be applied to default arguments. See, for example, the following comment for what roughly needs to be added: http://bugs.python.org/issue15906#msg170404 I will provide a patch. ---------- assignee: docs@python components: Documentation keywords: easy messages: 170421 nosy: barry, bethard, cjerdonek, docs@python, r.david.murray priority: normal severity: normal stage: needs patch status: open title: clarify argparse docs re: add_argument() type and default arguments type: behavior versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Chris Jerdonek added the comment: Attaching patch. ---------- keywords: +patch Added file: http://bugs.python.org/file27182/issue-15935-1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Steven Bethard added the comment: Looks good to me. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Chris Jerdonek added the comment: If this looks good, can one of you three (Steven, Barry, or David) commit it in the three branches? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Changes by Chris Jerdonek <chris.jerdonek@gmail.com>: ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Barry A. Warsaw added the comment: Looks good to me too! Thanks; I'll apply the patch. ---------- assignee: docs@python -> barry _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Roundup Robot added the comment: New changeset b624059a8dac by Barry Warsaw in branch '2.7': - Issue #15935: Clarification of argparse docs, re: add_argument() type and http://hg.python.org/cpython/rev/b624059a8dac New changeset b738e42e664a by Barry Warsaw in branch '3.2': - Issue #15935: Clarification of argparse docs, re: add_argument() type and http://hg.python.org/cpython/rev/b738e42e664a ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
Changes by Barry A. Warsaw <barry@python.org>: ---------- resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
R. David Murray added the comment: FTR, the 3.3 commit is cce2bfe03dc5. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15935> _______________________________________
participants (5)
-
Barry A. Warsaw
-
Chris Jerdonek
-
R. David Murray
-
Roundup Robot
-
Steven Bethard