Lines Matching defs:spec
341 PyObject *spec;
348 spec = PyObject_GetAttr(mod, &_Py_ID(__spec__));
349 int busy = _PyModuleSpec_IsInitializing(spec);
350 Py_XDECREF(spec);
969 create_builtin(PyThreadState *tstate, PyObject *name, PyObject *spec)
990 return PyModule_FromDefAndSpec((PyModuleDef*)mod, spec);
1018 spec: object
1025 _imp_create_builtin(PyObject *module, PyObject *spec)
1030 PyObject *name = PyObject_GetAttrString(spec, "name");
1035 PyObject *mod = create_builtin(tstate, name, spec);
1542 PyObject *spec;
1562 spec = PyDict_GetItemWithError(globals, &_Py_ID(__spec__));
1563 if (spec == NULL && _PyErr_Occurred(tstate)) {
1574 else if (spec != NULL && spec != Py_None) {
1576 PyObject *parent = PyObject_GetAttr(spec, &_Py_ID(parent));
1594 else if (spec != NULL && spec != Py_None) {
1595 package = PyObject_GetAttr(spec, &_Py_ID(parent));
2341 spec: object
2349 _imp_create_dynamic_impl(PyObject *module, PyObject *spec, PyObject *file)
2355 name = PyObject_GetAttrString(spec, "name");
2360 path = PyObject_GetAttrString(spec, "origin");
2385 mod = _PyImport_LoadDynamicModuleWithSpec(spec, fp);
2542 PyObject *spec = _PyNamespace_New(attrs);
2544 if (spec == NULL) {
2549 PyObject *mod = create_builtin(tstate, name, spec);
2551 Py_DECREF(spec);