1#ifndef Py_CPYTHON_IMPORT_H
2# error "this header file must not be included directly"
3#endif
4
5PyMODINIT_FUNC PyInit__imp(void);
6
7PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
8
9PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
10PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
11PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
12
13PyAPI_FUNC(void) _PyImport_AcquireLock(void);
14PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
15
16/* Obsolete since 3.5, will be removed in 3.11. */
17Py_DEPRECATED(3.10) PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
18
19PyAPI_FUNC(int) _PyImport_FixupBuiltin(
20 PyObject *mod,
21 const char *name, /* UTF-8 encoded string */
22 PyObject *modules
23 );
24PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
25 PyObject *, PyObject *);
26
27struct _inittab {
28 const char *name; /* ASCII encoded string */
29 PyObject* (*initfunc)(void);
30};
31PyAPI_DATA(struct _inittab *) PyImport_Inittab;
32PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
33
34struct _frozen {
35 const char *name; /* ASCII encoded string */
36 const unsigned char *code;
37 int size;
38};
39
40/* Embedding apps may change this pointer to point to their favorite
41 collection of frozen modules: */
42
43PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
44
45PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
46PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);
47

source code of include/python3.10/cpython/import.h