/* Module definition and import interface */#ifndef Py_IMPORT_H#define Py_IMPORT_H#ifdef __cplusplusextern "C" {#endif#ifndef Py_LIMITED_APIPyMODINIT_FUNC PyInit__imp(void);#endif /* !Py_LIMITED_API */PyAPI_FUNC(long) PyImport_GetMagicNumber(void);PyAPI_FUNC(const char *) PyImport_GetMagicTag(void);PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(const char *name, /* UTF-8 encoded string */PyObject *co);PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx(const char *name, /* UTF-8 encoded string */PyObject *co,const char *pathname /* decoded from the filesystem encoding */);PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames(const char *name, /* UTF-8 encoded string */PyObject *co,const char *pathname, /* decoded from the filesystem encoding */const char *cpathname /* decoded from the filesystem encoding */);#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(PyObject *name,PyObject *co,PyObject *pathname,PyObject *cpathname);#endifPyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);#endif#ifndef Py_LIMITED_APIPyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);PyAPI_FUNC(PyObject *) _PyImport_AddModuleObject(PyObject *name,PyObject *modules);PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);#endif#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000PyAPI_FUNC(PyObject *) PyImport_AddModuleObject(PyObject *name);#endifPyAPI_FUNC(PyObject *) PyImport_AddModule(const char *name /* UTF-8 encoded string */);PyAPI_FUNC(PyObject *) PyImport_ImportModule(const char *name /* UTF-8 encoded string */);PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(const char *name /* UTF-8 encoded string */);PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(const char *name, /* UTF-8 encoded string */PyObject *globals,PyObject *locals,PyObject *fromlist,int level);#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject(PyObject *name,PyObject *globals,PyObject *locals,PyObject *fromlist,int level);#endif#define PyImport_ImportModuleEx(n, g, l, f) \PyImport_ImportModuleLevel(n, g, l, f, 0)PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);PyAPI_FUNC(void) PyImport_Cleanup(void);#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(PyObject *name);#endifPyAPI_FUNC(int) PyImport_ImportFrozenModule(const char *name /* UTF-8 encoded string */);#ifndef Py_LIMITED_APIPyAPI_FUNC(void) _PyImport_AcquireLock(void);PyAPI_FUNC(int) _PyImport_ReleaseLock(void);PyAPI_FUNC(void) _PyImport_ReInitLock(void);PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(const char *name, /* UTF-8 encoded string */PyObject *modules);PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObjectEx(PyObject *, PyObject *,PyObject *);PyAPI_FUNC(int) _PyImport_FixupBuiltin(PyObject *mod,const char *name, /* UTF-8 encoded string */PyObject *modules);PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,PyObject *, PyObject *);struct _inittab {const char *name; /* ASCII encoded string */PyObject* (*initfunc)(void);};PyAPI_DATA(struct _inittab *) PyImport_Inittab;PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);#endif /* Py_LIMITED_API */PyAPI_DATA(PyTypeObject) PyNullImporter_Type;PyAPI_FUNC(int) PyImport_AppendInittab(const char *name, /* ASCII encoded string */PyObject* (*initfunc)(void));#ifndef Py_LIMITED_APIstruct _frozen {const char *name; /* ASCII encoded string */const unsigned char *code;int size;};/* Embedding apps may change this pointer to point to their favoritecollection of frozen modules: */PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;#endif#ifdef __cplusplus}#endif#endif /* !Py_IMPORT_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。