Searched refs:PyModuleObject (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Objects/ |
D | moduleobject.c | 10 } 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/ |
D | moduleobject.c | 17 } PyModuleObject; typedef 20 {"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY}, 58 module_init_dict(PyModuleObject *mod, PyObject *md_dict, in module_init_dict() 94 PyModuleObject *m; in PyModule_NewObject() 95 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); in PyModule_NewObject() 185 PyModuleObject *m; in _PyModule_CreateInitialized() 215 if ((m = (PyModuleObject*)PyModule_New(name)) == NULL) in _PyModule_CreateInitialized() 325 ((PyModuleObject*)m)->md_state = NULL; in PyModule_FromDefAndSpec2() 326 ((PyModuleObject*)m)->md_def = def; in PyModule_FromDefAndSpec2() 391 PyModuleObject *md = (PyModuleObject*)module; in PyModule_ExecDef() [all …]
|
/external/python/cpython3/Objects/clinic/ |
D | moduleobject.c.h | 14 module___init___impl(PyModuleObject *self, PyObject *name, PyObject *doc); 29 return_value = module___init___impl((PyModuleObject *)self, name, doc); in module___init__()
|