Lines Matching refs:intern
79 PyObject *intern; /* Dictionary to intern strings */ member
236 if (!self->intern) in string_intern()
238 value = PyDict_GetItemWithError(self->intern, result); in string_intern()
241 PyDict_SetItem(self->intern, result, result) == 0) in string_intern()
961 new_parser->intern = self->intern; in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
962 Py_XINCREF(new_parser->intern); in pyexpat_xmlparser_ExternalEntityParserCreate_impl()
1133 const char *namespace_separator, PyObject *intern) in newxmlparseobject() argument
1150 self->intern = intern; in newxmlparseobject()
1151 Py_XINCREF(self->intern); in newxmlparseobject()
1199 Py_CLEAR(op->intern); in xmlparse_clear()
1460 {"intern", T_OBJECT, offsetof(xmlparseobject, intern), READONLY, NULL},
1526 const char *namespace_separator, PyObject *intern) in pyexpat_ParserCreate_impl() argument
1541 if (intern == Py_None) in pyexpat_ParserCreate_impl()
1542 intern = NULL; in pyexpat_ParserCreate_impl()
1543 else if (intern == NULL) { in pyexpat_ParserCreate_impl()
1544 intern = PyDict_New(); in pyexpat_ParserCreate_impl()
1545 if (!intern) in pyexpat_ParserCreate_impl()
1549 else if (!PyDict_Check(intern)) { in pyexpat_ParserCreate_impl()
1555 result = newxmlparseobject(state, encoding, namespace_separator, intern); in pyexpat_ParserCreate_impl()
1557 Py_DECREF(intern); in pyexpat_ParserCreate_impl()