Lines Matching refs:md_dict
12 PyObject *md_dict; member
20 {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
58 module_init_dict(PyModuleObject *mod, PyObject *md_dict, in module_init_dict() argument
67 if (md_dict == NULL) in module_init_dict()
72 if (_PyDict_SetItemId(md_dict, &PyId___name__, name) != 0) in module_init_dict()
74 if (_PyDict_SetItemId(md_dict, &PyId___doc__, doc) != 0) in module_init_dict()
76 if (_PyDict_SetItemId(md_dict, &PyId___package__, Py_None) != 0) in module_init_dict()
78 if (_PyDict_SetItemId(md_dict, &PyId___loader__, Py_None) != 0) in module_init_dict()
80 if (_PyDict_SetItemId(md_dict, &PyId___spec__, Py_None) != 0) in module_init_dict()
102 m->md_dict = PyDict_New(); in PyModule_NewObject()
103 if (module_init_dict(m, m->md_dict, name, NULL) != 0) in PyModule_NewObject()
480 d = ((PyModuleObject *)m) -> md_dict; in PyModule_GetDict()
495 d = ((PyModuleObject *)m)->md_dict; in PyModule_GetNameObject()
527 d = ((PyModuleObject *)m)->md_dict; in PyModule_GetFilenameObject()
575 PyObject *d = ((PyModuleObject *)m)->md_dict; in _PyModule_Clear()
661 PyObject *dict = self->md_dict; in module___init___impl()
666 self->md_dict = dict; in module___init___impl()
684 Py_XDECREF(m->md_dict); in module_dealloc()
709 if (m->md_dict) { in module_getattro()
711 getattr = _PyDict_GetItemId(m->md_dict, &PyId___getattr__); in module_getattro()
717 mod_name = _PyDict_GetItemId(m->md_dict, &PyId___name__); in module_getattro()
737 Py_VISIT(m->md_dict); in module_traverse()
749 Py_CLEAR(m->md_dict); in module_clear()
825 offsetof(PyModuleObject, md_dict), /* tp_dictoffset */