mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Add PyExc_ImportCycleError and raise it when a cycle is detected
This commit is contained in:
parent
00e7800e4c
commit
781eedb9d4
9 changed files with 57 additions and 15 deletions
|
|
@ -316,8 +316,7 @@ 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;
|
||||
PyObject *lazy_importing_modules;
|
||||
/* The global import lock. */
|
||||
_PyRecursiveMutex lock;
|
||||
/* diagnostic info in PyImport_ImportModuleLevelObject() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue