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 2013年11月13日 19:33 by Antony.Lee, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| inspect.py.diff | Antony.Lee, 2013年11月13日 19:33 | patch for Lib/inspect.py | review | |
| inspect.py.diff | Antony.Lee, 2014年02月04日 18:01 | patch for Lib/inspect.py | review | |
| Messages (5) | |||
|---|---|---|---|
| msg202773 - (view) | Author: Antony Lee (Antony.Lee) * | Date: 2013年11月13日 19:33 | |
The following patch corrects the docstring of `inspect.Parameter`, as the `default` and `annotation` attributes are in fact set to `empty` if no value is provided, and the `kind` attribute is in fact an `int` (more precisely, a `_ParameterKind`). It also reimplements the `_ParameterKind` type as an `IntEnum`, as the previous implementation (which predates stdlib enums) was more or less a hand-rolled `IntEnum`. |
|||
| msg209591 - (view) | Author: Yury Selivanov (yselivanov) * (Python committer) | Date: 2014年01月28日 21:42 | |
Antony, the docstrings are fixed. Could you please provide a patch just for the _ParameterKind-Enum refactoring? I'll incorporate it into 3.5 then. |
|||
| msg210255 - (view) | Author: Antony Lee (Antony.Lee) * | Date: 2014年02月04日 18:01 | |
Submitted new patch as suggested. |
|||
| msg210256 - (view) | Author: Yury Selivanov (yselivanov) * (Python committer) | Date: 2014年02月04日 18:03 | |
The patch looks good to me. I'll merge it in 3.5 later. |
|||
| msg214956 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年03月27日 15:32 | |
New changeset c2b94f891c88 by Yury Selivanov in branch 'default': inspect.signature: Use enum for parameter kind constants. Closes #19573 http://hg.python.org/cpython/rev/c2b94f891c88 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:53 | admin | set | github: 63772 |
| 2014年03月27日 15:32:29 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg214956 resolution: fixed stage: patch review -> resolved |
| 2014年02月04日 18:03:36 | yselivanov | set | messages: + msg210256 |
| 2014年02月04日 18:01:07 | Antony.Lee | set | files:
+ inspect.py.diff messages: + msg210255 |
| 2014年01月28日 21:42:18 | yselivanov | set | assignee: docs@python -> yselivanov messages: + msg209591 |
| 2014年01月28日 21:35:28 | yselivanov | set | nosy:
+ yselivanov versions: + Python 3.5, - Python 3.4 |
| 2013年11月16日 19:05:08 | ezio.melotti | set | nosy:
+ ncoghlan, ezio.melotti, ethan.furman stage: patch review components: + Library (Lib) versions: + Python 3.4 |
| 2013年11月13日 19:33:43 | Antony.Lee | create | |