Home
last modified time | relevance | path

Searched refs:PyModuleObject (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Objects/
Dmoduleobject.c10 } PyModuleObject; typedef
13 {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
20 PyModuleObject *m; in PyModule_New()
22 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); 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()
88 d = ((PyModuleObject *)m)->md_dict; in PyModule_GetFilename()
113 d = ((PyModuleObject *)m)->md_dict; in _PyModule_Clear()
154 module_init(PyModuleObject *m, PyObject *args, PyObject *kwds) in module_init()
[all …]
/external/python/cpython3/Objects/
Dmoduleobject.c22 } PyModuleObject; typedef
25 {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
53 module_init_dict(PyModuleObject *mod, PyObject *md_dict, in module_init_dict()
86 PyModuleObject *m; in PyModule_NewObject()
87 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); in PyModule_NewObject()
180 PyModuleObject *m; in _PyModule_CreateInitialized()
210 if ((m = (PyModuleObject*)PyModule_New(name)) == NULL) in _PyModule_CreateInitialized()
320 ((PyModuleObject*)m)->md_state = NULL; in PyModule_FromDefAndSpec2()
321 ((PyModuleObject*)m)->md_def = def; in PyModule_FromDefAndSpec2()
376 PyModuleObject *md = (PyModuleObject*)module; in PyModule_ExecDef()
[all …]
/external/python/cpython3/Objects/clinic/
Dmoduleobject.c.h14 module___init___impl(PyModuleObject *self, PyObject *name, PyObject *doc);
46 return_value = module___init___impl((PyModuleObject *)self, name, doc); in module___init__()