Python Circular Imports - Stack Abuse
stackabuse.com › python-circular-importsOct 17, 2017 · When Python imports a module, it checks the module registry to see if the module was already imported. If the module was already registered, Python uses that existing object from cache. The module registry is a table of modules that have been initialized and indexed by module name. This table can be accessed through sys.modules.