Lines Matching defs:args

21 pyexpat_xmlparser_Parse(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
30 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
31 if (!args) {
34 data = args[0];
38 isfinal = _PyLong_AsInt(args[1]);
63 pyexpat_xmlparser_ParseFile(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
71 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
72 if (!args) {
75 file = args[0];
175 pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
184 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
185 if (!args) {
188 if (args[0] == Py_None) {
191 else if (PyUnicode_Check(args[0])) {
193 context = PyUnicode_AsUTF8AndSize(args[0], &context_length);
203 _PyArg_BadArgument("ExternalEntityParserCreate", "argument 1", "str or None", args[0]);
209 if (!PyUnicode_Check(args[1])) {
210 _PyArg_BadArgument("ExternalEntityParserCreate", "argument 2", "str", args[1]);
214 encoding = PyUnicode_AsUTF8AndSize(args[1], &encoding_length);
282 pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
290 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
291 if (!args) {
297 flag = PyObject_IsTrue(args[0]);
325 pyexpat_ParserCreate(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
336 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 3, 0, argsbuf);
337 if (!args) {
343 if (args[0]) {
344 if (args[0] == Py_None) {
347 else if (PyUnicode_Check(args[0])) {
349 encoding = PyUnicode_AsUTF8AndSize(args[0], &encoding_length);
359 _PyArg_BadArgument("ParserCreate", "argument 'encoding'", "str or None", args[0]);
366 if (args[1]) {
367 if (args[1] == Py_None) {
370 else if (PyUnicode_Check(args[1])) {
372 namespace_separator = PyUnicode_AsUTF8AndSize(args[1], &namespace_separator_length);
382 _PyArg_BadArgument("ParserCreate", "argument 'namespace_separator'", "str or None", args[1]);
389 intern = args[2];