We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a756a4b commit 061e334Copy full SHA for 061e334
1 file changed
Include/internal/pycore_import.h
@@ -56,7 +56,10 @@ extern void _PyImport_ClearCore(PyInterpreterState *interp);
56
57
extern Py_ssize_t _PyImport_GetNextModuleIndex(void);
58
extern const char * _PyImport_ResolveNameWithPackageContext(const char *name);
59
-extern const char * _PyImport_SwapPackageContext(const char *newcontext);
+
60
+// Exported for third party libraries that want access to our thread-local
61
+// package context. Ideally, this can be an unstable API at some point.
62
+PyAPI_FUNC(const char *) _PyImport_SwapPackageContext(const char *newcontext);
63
64
extern int _PyImport_GetDLOpenFlags(PyInterpreterState *interp);
65
extern void _PyImport_SetDLOpenFlags(PyInterpreterState *interp, int new_val);
0 commit comments