R. David Murray added the comment:
I reworded it so that it is clear we are talking about types and not strings.
--
nosy: +r.david.murray
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
type: enhancement -> behavior
versions: +Python 3.2, Python 3.
Roundup Robot added the comment:
New changeset e7f205ce080e by R David Murray in branch '3.2':
#14391: clarify docstring discussion of Action's 'type' argument's value.
http://hg.python.org/cpython/rev/e7f205ce080e
New changeset 3d1ea33611c1 by R David Murray in branch 'default':
Merge #14391:
Steven Bethard added the comment:
The patch supplied was in reverse, but the bug report was correct. You can't
pass "type=string" since there's no string callable, only a str callable.
The docstring is confusing because the quotes make it looks like we mean the
string 'str', when we actually
Terry J. Reedy added the comment:
The patch, to an unspecified version of 2.7, changes 'str' to 'string', so I
presume that is what you meant. The current repository code already says
'string' for 2.7, 3.2, and 3.3. This is what you should see in the current
release candidates, including 2.7.
New submission from Toshihiro Kamishima :
Keywords to specify as string type are incorrect.
'string' should be 'str'
--
components: Library (Lib)
files: argparse.py.patch
keywords: patch
messages: 156635
nosy: shima__shima
priority: normal
severity: normal
status: open
title: misc TYPO i