Lines Matching refs:spec
260 PyModule_FromDefAndSpec2(PyModuleDef* def, PyObject *spec, int module_api_version)
272 nameobj = PyObject_GetAttrString(spec, "name");
315 m = create(spec, def);
714 /* Check if the "_initializing" attribute of the module spec is set to true.
715 Clear the exception and return 0 if spec is NULL.
718 _PyModuleSpec_IsInitializing(PyObject *spec)
720 if (spec != NULL) {
721 PyObject *value = PyObject_GetAttr(spec, &_Py_ID(_initializing));
735 of the module spec.
738 _PyModuleSpec_IsUninitializedSubmodule(PyObject *spec, PyObject *name)
740 if (spec == NULL) {
744 PyObject *value = PyObject_GetAttr(spec, &_Py_ID(_uninitialized_submodules));
777 PyObject *spec = PyDict_GetItemWithError(m->md_dict, &_Py_ID(__spec__));
778 if (spec == NULL && PyErr_Occurred()) {
782 Py_XINCREF(spec);
783 if (_PyModuleSpec_IsInitializing(spec)) {
790 else if (_PyModuleSpec_IsUninitializedSubmodule(spec, name)) {
801 Py_XDECREF(spec);