Lines Matching refs:py_code
2252 PyObject *py_code; /* extension code as Python object */ in save_global() local
2259 py_code = PyDict_GetItem(extension_registry, two_tuple); in save_global()
2260 if (py_code == NULL) in save_global()
2264 if (!PyInt_Check(py_code)) { in save_global()
2267 "OO", args, py_code); in save_global()
2270 code = PyInt_AS_LONG(py_code); in save_global()
4290 PyObject *py_code; /* code as a Python int */ in load_extension() local
4305 py_code = PyInt_FromLong(code); in load_extension()
4306 if (py_code == NULL) return -1; in load_extension()
4307 obj = PyDict_GetItem(extension_cache, py_code); in load_extension()
4310 Py_DECREF(py_code); in load_extension()
4316 pair = PyDict_GetItem(inverted_registry, py_code); in load_extension()
4318 Py_DECREF(py_code); in load_extension()
4329 Py_DECREF(py_code); in load_extension()
4337 Py_DECREF(py_code); in load_extension()
4341 code = PyDict_SetItem(extension_cache, py_code, obj); in load_extension()
4342 Py_DECREF(py_code); in load_extension()