Searched refs:py_code (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Modules/_ctypes/ |
D | callbacks.c | 154 PyCodeObject *py_code = 0; in _ctypes_add_traceback() local 159 py_code = PyCode_NewEmpty(filename, funcname, lineno); in _ctypes_add_traceback() 160 if (!py_code) goto bad; in _ctypes_add_traceback() 163 py_code, /*PyCodeObject *code,*/ in _ctypes_add_traceback() 172 Py_XDECREF(py_code); in _ctypes_add_traceback()
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 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() [all …]
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 5817 PyObject *py_code; /* code as a Python int */ in load_extension() local 5834 py_code = PyLong_FromLong(code); in load_extension() 5835 if (py_code == NULL) in load_extension() 5837 obj = PyDict_GetItemWithError(st->extension_cache, py_code); in load_extension() 5840 Py_DECREF(py_code); in load_extension() 5845 Py_DECREF(py_code); in load_extension() 5850 pair = PyDict_GetItemWithError(st->inverted_registry, py_code); in load_extension() 5852 Py_DECREF(py_code); in load_extension() 5865 Py_DECREF(py_code); in load_extension() 5873 Py_DECREF(py_code); in load_extension() [all …]
|