Lines Matching defs:kwds
306 element_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
328 * directly into *kwds.
330 * Return a dictionary with the content of kwds merged into the content of
331 * attrib. If there is no attrib keyword, return a copy of kwds.
334 get_attrib_from_keywords(PyObject *kwds)
340 PyObject *attrib = PyDict_GetItemWithError(kwds, attrib_str);
343 /* If attrib was found in kwds, copy its value and remove it from
344 * kwds
353 if (attrib && PyDict_DelItem(kwds, attrib_str) < 0) {
364 if (attrib != NULL && PyDict_Update(attrib, kwds) < 0) {
380 element_init(PyObject *self, PyObject *args, PyObject *kwds)
394 if (kwds) {
395 if (PyDict_Update(attrib, kwds) < 0) {
400 } else if (kwds) {
402 attrib = get_attrib_from_keywords(kwds);
578 subelement(PyObject *self, PyObject *args, PyObject *kwds)
596 if (kwds != NULL && PyDict_Update(attrib, kwds) < 0) {
600 } else if (kwds) {
602 attrib = get_attrib_from_keywords(kwds);
606 /* no attrib arg, no kwds, so no attribute */
2351 treebuilder_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
3597 xmlparser_new(PyTypeObject *type, PyObject *args, PyObject *kwds)