Lines Matching refs:py_code
2236 PyObject *py_code; /* extension code as Python object */ in save_global() local
2243 py_code = PyDict_GetItem(extension_registry, two_tuple); in save_global()
2244 if (py_code == NULL) in save_global()
2248 if (!PyInt_Check(py_code)) { in save_global()
2251 "OO", args, py_code); in save_global()
2254 code = PyInt_AS_LONG(py_code); in save_global()
4304 PyObject *py_code; /* code as a Python int */ in load_extension() local
4319 py_code = PyInt_FromLong(code); in load_extension()
4320 if (py_code == NULL) return -1; in load_extension()
4321 obj = PyDict_GetItem(extension_cache, py_code); in load_extension()
4324 Py_DECREF(py_code); in load_extension()
4330 pair = PyDict_GetItem(inverted_registry, py_code); in load_extension()
4332 Py_DECREF(py_code); in load_extension()
4343 Py_DECREF(py_code); in load_extension()
4351 Py_DECREF(py_code); in load_extension()
4355 code = PyDict_SetItem(extension_cache, py_code, obj); in load_extension()
4356 Py_DECREF(py_code); in load_extension()