mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix recursive lazy imports and error path in bytecodes.c
This commit is contained in:
parent
f9880bfd5f
commit
f3f5795e31
6 changed files with 18 additions and 6 deletions
|
|
@ -316,6 +316,8 @@ struct _import_state {
|
|||
PyObject *lazy_import_func;
|
||||
int lazy_imports_mode;
|
||||
PyObject *lazy_imports_filter;
|
||||
/* Counter to prevent recursive lazy import creation */
|
||||
int lazy_import_resolution_depth;
|
||||
/* The global import lock. */
|
||||
_PyRecursiveMutex lock;
|
||||
/* diagnostic info in PyImport_ImportModuleLevelObject() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue