[issue20157] Argument Clinic generates wrong keyword parameter name for "default"
Serhiy Storchaka
report at bugs.python.org
Tue Jan 7 10:08:52 CET 2014
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 *kwargs)
{
PyObject *return_value = NULL;
static char *_keywords[] = {"default_value", NULL};
int default_value = 1;
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
"|i:ham", _keywords,
&default_value))
goto exit;
...
----------
components: Build
files: spammodule.c
messages: 207513
nosy: larry, serhiy.storchaka
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Argument Clinic generates wrong keyword parameter name for "default"
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file33337/spammodule.c
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20157>
_______________________________________
More information about the Python-bugs-list
mailing list