This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年03月23日 06:25 by shima__shima, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| argparse.py.patch | shima__shima, 2012年03月23日 06:25 | |||
| Messages (5) | |||
|---|---|---|---|
| msg156635 - (view) | Author: Toshihiro Kamishima (shima__shima) | Date: 2012年03月23日 06:25 | |
Keywords to specify as string type are incorrect. 'string' should be 'str' |
|||
| msg156727 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2012年03月25日 00:53 | |
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.3rc2 |
|||
| msg166061 - (view) | Author: Steven Bethard (bethard) * (Python committer) | Date: 2012年07月21日 20:13 | |
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 mean the callable 'str'. Maybe they should be `str` or ``str``? Not sure what the syntax for code, not string literals, is for docstrings. Anyway, this should be an easy fix for a doc person. |
|||
| msg166069 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年07月21日 21:07 | |
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: clarify docstring discussion of Action's 'type' argument's value. http://hg.python.org/cpython/rev/3d1ea33611c1 New changeset 905d9bdae970 by R David Murray in branch '2.7': #14391: clarify docstring discussion of Action's 'type' argument's value. http://hg.python.org/cpython/rev/905d9bdae970 |
|||
| msg166070 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年07月21日 21:08 | |
I reworded it so that it is clear we are talking about types and not strings. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:28 | admin | set | github: 58599 |
| 2012年07月21日 21:08:41 | r.david.murray | set | status: open -> closed type: enhancement -> behavior versions: + Python 3.2, Python 3.3 nosy: + r.david.murray messages: + msg166070 resolution: fixed stage: patch review -> resolved |
| 2012年07月21日 21:07:04 | python-dev | set | nosy:
+ python-dev messages: + msg166069 |
| 2012年07月21日 20:13:22 | bethard | set | keywords:
+ easy status: closed -> open resolution: out of date -> (no value) messages: + msg166061 |
| 2012年03月25日 00:53:20 | terry.reedy | set | status: open -> closed assignee: docs@python components: + Documentation nosy: + terry.reedy, docs@python, bethard messages: + msg156727 resolution: out of date stage: patch review |
| 2012年03月23日 06:25:33 | shima__shima | create | |