Lines Matching defs:interp
37 PyInterpreterState *interp = _PyInterpreterState_GET();
38 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init())
48 return PyList_Append(interp->codec_search_path, search_function);
57 PyInterpreterState *interp = PyInterpreterState_Get();
58 PyObject *codec_search_path = interp->codec_search_path;
69 if (interp->codec_search_cache != NULL) {
70 assert(PyDict_CheckExact(interp->codec_search_cache));
71 PyDict_Clear(interp->codec_search_cache);
134 PyInterpreterState *interp = _PyInterpreterState_GET();
135 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) {
149 PyObject *result = PyDict_GetItemWithError(interp->codec_search_cache, v);
160 const Py_ssize_t len = PyList_Size(interp->codec_search_path);
174 func = PyList_GetItem(interp->codec_search_path, i);
200 if (PyDict_SetItem(interp->codec_search_cache, v, result) < 0) {
624 PyInterpreterState *interp = _PyInterpreterState_GET();
625 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init())
631 return PyDict_SetItemString(interp->codec_error_registry,
642 PyInterpreterState *interp = _PyInterpreterState_GET();
643 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init())
648 handler = _PyDict_GetItemStringWithError(interp->codec_error_registry, name);
1495 PyInterpreterState *interp = _PyInterpreterState_GET();
1498 if (interp->codec_search_path != NULL)
1501 interp->codec_search_path = PyList_New(0);
1502 if (interp->codec_search_path == NULL) {
1506 interp->codec_search_cache = PyDict_New();
1507 if (interp->codec_search_cache == NULL) {
1511 interp->codec_error_registry = PyDict_New();
1512 if (interp->codec_error_registry == NULL) {
1534 interp->codecs_initialized = 1;