Lines Matching refs:PyModuleObject
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()
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()
559 return ((PyModuleObject *)m)->md_def; in PyModule_GetDef()
569 return ((PyModuleObject *)m)->md_state; in PyModule_GetState()
575 PyObject *d = ((PyModuleObject *)m)->md_dict; in _PyModule_Clear()
662 module___init___impl(PyModuleObject *self, PyObject *name, PyObject *doc) in module___init___impl()
678 module_dealloc(PyModuleObject *m) in module_dealloc()
698 module_repr(PyModuleObject *m) in module_repr()
727 module_getattro(PyModuleObject *m, PyObject *name) in module_getattro()
772 module_traverse(PyModuleObject *m, visitproc visit, void *arg) in module_traverse()
784 module_clear(PyModuleObject *m) in module_clear()
835 sizeof(PyModuleObject), /* tp_basicsize */
858 offsetof(PyModuleObject, md_weaklist), /* tp_weaklistoffset */
868 offsetof(PyModuleObject, md_dict), /* tp_dictoffset */