diff --git a/peps/pep-0810.rst b/peps/pep-0810.rst index 3e9c78e4ad0..c619aaf0954 100644 --- a/peps/pep-0810.rst +++ b/peps/pep-0810.rst @@ -1367,16 +1367,16 @@ The Python ``import`` machinery separates out finding a module and loading it, and the lazy import implementation could technically defer only the loading part. However: - - Finding the module does not guarantee the import will succeed, nor even - that it will not raise ImportError. - - Finding modules in packages requires that those packages are loaded, so - it would only help with lazy loading one level of a package hierarchy. - - Since "finding" attributes in modules *requires* loading them, this would - create a hard to explain difference between - ``from package import module`` and ``from module import function``. - - A significant part of the performance win is skipping the finding part - (which may involve filesystem searches and consulting multiple importers - and meta-importers). +- Finding the module does not guarantee the import will succeed, nor even + that it will not raise ImportError. +- Finding modules in packages requires that those packages are loaded, so + it would only help with lazy loading one level of a package hierarchy. +- Since "finding" attributes in modules *requires* loading them, this would + create a hard to explain difference between + ``from package import module`` and ``from module import function``. +- A significant part of the performance win is skipping the finding part + (which may involve filesystem searches and consulting multiple importers + and meta-importers). Placing the ``lazy`` keyword in the middle of from imports ----------------------------------------------------------