New submission from Serhiy Storchaka:
For the default keyword parameter Argument Clinic generates wrong name
default_value in the _keywords array.
/*[clinic]
module spam
spam.ham
default: int = 1
[clinic]*/
...
static PyObject *
spam_ham(PyModuleDef *module, PyObject *args, PyObject
Larry Hastings added the comment:
I'll fix this but it's low priority for today.
It's not a release blocker; we could release Python 3.4 with this bug.
--
assignee: - larry
priority: release blocker - normal
___
Python tracker
Larry Hastings added the comment:
The problem was an easy fix. However, while fixing it I discovered another
problem (if [clinic]*/ was the last line, and it didn't have an eol, Clinic
would append another [clinic]*/). I fixed that too and added a regression
test.
Okay?
--
Added
Roundup Robot added the comment:
New changeset f61c63ec4e70 by Larry Hastings in branch 'default':
Issue #20157: When Argument Clinic renames a parameter because its name
http://hg.python.org/cpython/rev/f61c63ec4e70
--
nosy: +python-dev
___
Python
Changes by Larry Hastings la...@hastings.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20157
___