Add lazy import filter

This commit is contained in:
Dino Viehland 2025-09-19 00:54:01 -07:00
parent 9eef03cc80
commit de281fd894
21 changed files with 343 additions and 11 deletions

View file

@ -314,6 +314,8 @@ struct _import_state {
#endif
PyObject *import_func;
PyObject *lazy_import_func;
int lazy_imports_mode;
PyObject *lazy_imports_filter;
/* The global import lock. */
_PyRecursiveMutex lock;
/* diagnostic info in PyImport_ImportModuleLevelObject() */