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 <rep...@bugs.python.org> <http://bugs.python.org/issue20157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com