Home
last modified time | relevance | path

Searched refs:md_dict (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dmoduleobject.c9 PyObject *md_dict; member
13 {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
26 m->md_dict = PyDict_New(); in PyModule_New()
27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New()
29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New()
31 if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0) in PyModule_New()
33 if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0) in PyModule_New()
53 d = ((PyModuleObject *)m) -> md_dict; in PyModule_GetDict()
55 ((PyModuleObject *)m) -> md_dict = d = PyDict_New(); in PyModule_GetDict()
68 d = ((PyModuleObject *)m)->md_dict; in PyModule_GetName()
[all …]
/external/python/cpython3/Objects/
Dmoduleobject.c12 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()
[all …]