File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,10 +366,10 @@ Reification
366366
367367When a lazy object is first used, it needs to be reified. This means resolving
368368the import at that point in the program and replacing the lazy object with the
369- concrete one. Lazy modules are imported using the import system at the time of
370- reification. The value of `` __import__ `` and all import system state (e.g.,
371- ``sys.path ``, ``sys.meta_path ``, ``sys.path_hooks ``) are resolved at
372- reification time, not when the lazy import statement is executed .
369+ concrete one. Reification imports the module in the same way as it would have
370+ been if it had been imported eagerly, barring intervening changes to the
371+ import system (e.g. to ``sys.path ``, ``sys.meta_path ``, ``sys.path_hooks `` or
372+ `` __import__ ``) .
373373
374374Reification still calls ``__import__ `` to resolve the import. When the module
375375is first reified, it's removed from ``sys.lazy_modules `` (even if there are
You can’t perform that action at this time.
0 commit comments