Roundup Robot added the comment:
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
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Antony Lee added the comment:
Submitted new patch as suggested.
--
Added file: http://bugs.python.org/file33913/inspect.py.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19573
___
Yury Selivanov added the comment:
The patch looks good to me. I'll merge it in 3.5 later.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19573
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +yselivanov
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19573
___
Yury Selivanov added the comment:
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.
--
assignee: docs@python - yselivanov
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Library (Lib)
nosy: +ethan.furman, ezio.melotti, ncoghlan
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19573
New submission from Antony Lee:
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