FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/import.h at 3af7263037de1d0ef63b070fc7bfc2cf042eaebe · python/cpython · GitHub
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.1k
Star
77.2k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
import.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
103 lines (96 loc) · 3.16 KB
Breadcrumbs
cpython
/
Include
/
import.h
Copy path
File metadata and controls
103 lines (96 loc) · 3.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/* Module definition and import interface */
#ifndef
Py_IMPORT_H
#define
Py_IMPORT_H
#ifdef
__cplusplus
extern
"C"
{
#endif
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
>=
0x03030000
PyAPI_FUNC
(
PyObject
*
)
PyImport_ExecCodeModuleObject
(
PyObject
*
name
,
PyObject
*
co
,
PyObject
*
pathname
,
PyObject
*
cpathname
);
#endif
PyAPI_FUNC
(
PyObject
*
)
PyImport_GetModuleDict
(
void
);
#if
!defined(
Py_LIMITED_API
)
||
Py_LIMITED_API
+
0
>=
0x03070000
PyAPI_FUNC
(
PyObject
*
)
PyImport_GetModule
(
PyObject
*
name
);
#endif
#if
!defined(
Py_LIMITED_API
)
||
Py_LIMITED_API
+
0
>=
0x03030000
PyAPI_FUNC
(
PyObject
*
)
PyImport_AddModuleObject
(
PyObject
*
name
);
#endif
PyAPI_FUNC
(
PyObject
*
)
PyImport_AddModule
(
const
char
*
name
/* UTF-8 encoded string */
);
#if
!defined(
Py_LIMITED_API
)
||
Py_LIMITED_API
+
0
>=
0x030d0000
PyAPI_FUNC
(
PyObject
*
)
PyImport_AddModuleRef
(
const
char
*
name
/* UTF-8 encoded string */
);
#endif
PyAPI_FUNC
(
PyObject
*
)
PyImport_ImportModule
(
const
char
*
name
/* UTF-8 encoded string */
);
Py_DEPRECATED
(
3.13
)
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
>=
0x03050000
PyAPI_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
);
#if
!defined(
Py_LIMITED_API
)
||
Py_LIMITED_API
+
0
>=
0x03030000
PyAPI_FUNC
(
int
)
PyImport_ImportFrozenModuleObject
(
PyObject
*
name
);
#endif
PyAPI_FUNC
(
int
)
PyImport_ImportFrozenModule
(
const
char
*
name
/* UTF-8 encoded string */
);
PyAPI_FUNC
(
int
)
PyImport_AppendInittab
(
const
char
*
name
,
/* ASCII encoded string */
PyObject
*
(
*
initfunc
)(
void
)
);
#ifndef
Py_LIMITED_API
# define
Py_CPYTHON_IMPORT_H
# include
"cpython/import.h"
# undef
Py_CPYTHON_IMPORT_H
#endif
#ifdef
__cplusplus
}
#endif
#endif
/* !Py_IMPORT_H */
Back
|
FazBrowse Home
|
New Git URL