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 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:50serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2015-04-24 13:48:50serhiy.storchakasetmessageid: <1429883330.67.0.210732695704.issue24051@psf.upfronthosting.co.za>
2015-04-24 13:48:50serhiy.storchakalinkissue24051 messages
2015-04-24 13:48:50serhiy.storchakacreate