Message241943
| Author |
serhiy.storchaka |
| Recipients |
larry, serhiy.storchaka |
| Date |
2015年04月24日.13:48:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429883330.67.0.210732695704.issue24051@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Argument Clinic no longer works single optional argument. For example see _tkinter.tkapp.wantobjects in the patch in issue20168.
/*[clinic input]
_tkinter.tkapp.wantobjects
[
value: int
]
/
[clinic start generated code]*/
It is converted to the methoddef of type METH_O.
#define _TKINTER_TKAPP_WANTOBJECTS_METHODDEF \
{"wantobjects", (PyCFunction)_tkinter_tkapp_wantobjects, METH_O, _tkinter_tkapp_wantobjects__doc__},
static PyObject *
_tkinter_tkapp_wantobjects(PyObject *self, PyObject *arg)
{
PyObject *return_value = NULL;
int group_right_1 = 0;
int value = 0;
if (!PyArg_Parse(arg, "i:wantobjects", &value))
goto exit;
return_value = _tkinter_tkapp_wantobjects_impl(self, group_right_1, value);
exit:
return return_value;
}
As result wantobjects() can't be called without an argument. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年04月24日 13:48:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, larry |
| 2015年04月24日 13:48:50 | serhiy.storchaka | set | messageid: <1429883330.67.0.210732695704.issue24051@psf.upfronthosting.co.za> |
| 2015年04月24日 13:48:50 | serhiy.storchaka | link | issue24051 messages |
| 2015年04月24日 13:48:50 | serhiy.storchaka | create |
|