Lines Matching defs:def
163 Test that result of PyType_GetModuleByDef with a bad def is NULL.
327 PyModuleDef *def = PyModule_GetDef(mod);
328 if (def == NULL) {
335 mod = PyState_FindModule(def);
341 ret = PyState_AddModule(mod, def);
347 ret = PyState_RemoveModule(def);
463 createfunc_nonmodule(PyObject *spec, PyModuleDef *def)
467 if (def != &def_nonmodule && def != &def_nonmodule_with_methods) {
468 PyErr_SetString(PyExc_SystemError, "def does not match");
687 createfunc_null(PyObject *spec, PyModuleDef *def)
707 createfunc_raise(PyObject *spec, PyModuleDef *def)
728 createfunc_unreported_exception(PyObject *spec, PyModuleDef *def)