Lines Matching refs:global_name
3226 fix_imports(PyObject **module_name, PyObject **global_name) in fix_imports() argument
3232 key = PyTuple_Pack(2, *module_name, *global_name); in fix_imports()
3261 Py_CLEAR(*global_name); in fix_imports()
3265 *global_name = fixed_global_name; in fix_imports()
3294 PyObject *global_name = NULL; in save_global() local
3310 global_name = name; in save_global()
3313 if (_PyObject_LookupAttrId(obj, &PyId___qualname__, &global_name) < 0) in save_global()
3315 if (global_name == NULL) { in save_global()
3316 global_name = _PyObject_GetAttrId(obj, &PyId___name__); in save_global()
3317 if (global_name == NULL) in save_global()
3322 dotted_path = get_dotted_path(module, global_name); in save_global()
3351 obj, global_name, module_name); in save_global()
3358 obj, module_name, global_name); in save_global()
3373 extension_key = PyTuple_Pack(2, module_name, global_name); in save_global()
3436 Py_DECREF(global_name); in save_global()
3437 global_name = lastname; in save_global()
3444 if (save(self, global_name, 0) < 0) in save_global()
3474 if (fix_imports(&module_name, &global_name) < 0) { in save_global()
3509 encoded = unicode_encoder(global_name); in save_global()
3515 global_name, self->proto); in save_global()
3537 Py_XDECREF(global_name); in save_global()
4729 find_class(UnpicklerObject *self, PyObject *module_name, PyObject *global_name) in find_class() argument
4734 module_name, global_name, NULL); in find_class()
5545 PyObject *global_name; in load_global() local
5562 global_name = PyUnicode_DecodeUTF8(s, len - 1, "strict"); in load_global()
5563 if (global_name) { in load_global()
5564 global = find_class(self, module_name, global_name); in load_global()
5565 Py_DECREF(global_name); in load_global()
5581 PyObject *global_name; in load_stack_global() local
5583 PDATA_POP(self->stack, global_name); in load_stack_global()
5586 global_name == NULL || !PyUnicode_CheckExact(global_name)) { in load_stack_global()
5589 Py_XDECREF(global_name); in load_stack_global()
5593 global = find_class(self, module_name, global_name); in load_stack_global()
5594 Py_DECREF(global_name); in load_stack_global()
6578 PyObject *global_name) in _pickle_Unpickler_find_class_impl() argument
6594 key = PyTuple_Pack(2, module_name, global_name); in _pickle_Unpickler_find_class_impl()
6607 global_name = PyTuple_GET_ITEM(item, 1); in _pickle_Unpickler_find_class_impl()
6609 !PyUnicode_Check(global_name)) { in _pickle_Unpickler_find_class_impl()
6614 Py_TYPE(global_name)->tp_name); in _pickle_Unpickler_find_class_impl()
6647 global = getattribute(module, global_name, self->proto >= 4); in _pickle_Unpickler_find_class_impl()