Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

import.h 4.9 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
  1. /* Module definition and import interface */
  2. #ifndef Py_IMPORT_H
  3. #define Py_IMPORT_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifndef Py_LIMITED_API
  8. PyAPI_FUNC(_PyInitError) _PyImportZip_Init(void);
  9. PyMODINIT_FUNC PyInit__imp(void);
  10. #endif /* !Py_LIMITED_API */
  11. PyAPI_FUNC(long) PyImport_GetMagicNumber(void);
  12. PyAPI_FUNC(const char *) PyImport_GetMagicTag(void);
  13. PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(
  14. const char *name, /* UTF-8 encoded string */
  15. PyObject *co
  16. );
  17. PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx(
  18. const char *name, /* UTF-8 encoded string */
  19. PyObject *co,
  20. const char *pathname /* decoded from the filesystem encoding */
  21. );
  22. PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames(
  23. const char *name, /* UTF-8 encoded string */
  24. PyObject *co,
  25. const char *pathname, /* decoded from the filesystem encoding */
  26. const char *cpathname /* decoded from the filesystem encoding */
  27. );
  28. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
  29. PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(
  30. PyObject *name,
  31. PyObject *co,
  32. PyObject *pathname,
  33. PyObject *cpathname
  34. );
  35. #endif
  36. PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
  37. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
  38. PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);
  39. #endif
  40. #ifndef Py_LIMITED_API
  41. PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
  42. PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
  43. PyAPI_FUNC(PyObject *) _PyImport_AddModuleObject(PyObject *name,
  44. PyObject *modules);
  45. PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
  46. PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
  47. #endif
  48. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
  49. PyAPI_FUNC(PyObject *) PyImport_AddModuleObject(
  50. PyObject *name
  51. );
  52. #endif
  53. PyAPI_FUNC(PyObject *) PyImport_AddModule(
  54. const char *name /* UTF-8 encoded string */
  55. );
  56. PyAPI_FUNC(PyObject *) PyImport_ImportModule(
  57. const char *name /* UTF-8 encoded string */
  58. );
  59. PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(
  60. const char *name /* UTF-8 encoded string */
  61. );
  62. PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(
  63. const char *name, /* UTF-8 encoded string */
  64. PyObject *globals,
  65. PyObject *locals,
  66. PyObject *fromlist,
  67. int level
  68. );
  69. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
  70. PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject(
  71. PyObject *name,
  72. PyObject *globals,
  73. PyObject *locals,
  74. PyObject *fromlist,
  75. int level
  76. );
  77. #endif
  78. #define PyImport_ImportModuleEx(n, g, l, f) \
  79. PyImport_ImportModuleLevel(n, g, l, f, 0)
  80. PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);
  81. PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
  82. PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
  83. PyAPI_FUNC(void) PyImport_Cleanup(void);
  84. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
  85. PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(
  86. PyObject *name
  87. );
  88. #endif
  89. PyAPI_FUNC(int) PyImport_ImportFrozenModule(
  90. const char *name /* UTF-8 encoded string */
  91. );
  92. #ifndef Py_LIMITED_API
  93. PyAPI_FUNC(void) _PyImport_AcquireLock(void);
  94. PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
  95. PyAPI_FUNC(void) _PyImport_ReInitLock(void);
  96. PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
  97. const char *name, /* UTF-8 encoded string */
  98. PyObject *modules
  99. );
  100. PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
  101. PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObjectEx(PyObject *, PyObject *,
  102. PyObject *);
  103. PyAPI_FUNC(int) _PyImport_FixupBuiltin(
  104. PyObject *mod,
  105. const char *name, /* UTF-8 encoded string */
  106. PyObject *modules
  107. );
  108. PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
  109. PyObject *, PyObject *);
  110. struct _inittab {
  111. const char *name; /* ASCII encoded string */
  112. PyObject* (*initfunc)(void);
  113. };
  114. PyAPI_DATA(struct _inittab *) PyImport_Inittab;
  115. PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
  116. #endif /* Py_LIMITED_API */
  117. PyAPI_DATA(PyTypeObject) PyNullImporter_Type;
  118. PyAPI_FUNC(int) PyImport_AppendInittab(
  119. const char *name, /* ASCII encoded string */
  120. PyObject* (*initfunc)(void)
  121. );
  122. #ifndef Py_LIMITED_API
  123. struct _frozen {
  124. const char *name; /* ASCII encoded string */
  125. const unsigned char *code;
  126. int size;
  127. };
  128. /* Embedding apps may change this pointer to point to their favorite
  129. collection of frozen modules: */
  130. PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
  131. #endif
  132. #ifdef __cplusplus
  133. }
  134. #endif
  135. #endif /* !Py_IMPORT_H */
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...