mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Add lazy import filter
This commit is contained in:
parent
9eef03cc80
commit
de281fd894
21 changed files with 343 additions and 11 deletions
|
|
@ -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() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue