homepage

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.

Author serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2014年01月07日.09:08:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389085732.24.0.553020879492.issue20157@psf.upfronthosting.co.za>
In-reply-to
Content
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;
...
History
Date User Action Args
2014年01月07日 09:08:52serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2014年01月07日 09:08:52serhiy.storchakasetmessageid: <1389085732.24.0.553020879492.issue20157@psf.upfronthosting.co.za>
2014年01月07日 09:08:52serhiy.storchakalinkissue20157 messages
2014年01月07日 09:08:52serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /