[Python-Dev] More optimisation ideas
Terry Reedy
tjreedy at udel.edu
Sun Jan 31 18:35:44 EST 2016
On 1/31/2016 12:09 PM, Antoine Pitrou wrote:
> The following documentation leaves me absolutely clueless:
>
> """This class only works with loaders that define exec_module() as control
> over what module type is used for the module is required.
No wonder. I cannot parse it as an English sentence. It needs rewriting.
> For those same
> reasons, the loader’s create_module() method will be ignored (i.e., the
> loader’s method should only return None). Finally, modules which substitute
> the object placed into sys.modules will not work as there is no way to
> properly replace the module references throughout the interpreter safely;
> ValueError is raised if such a substitution is detected."""
>
> (reference:
> https://docs.python.org/3/library/importlib.html#importlib.util.LazyLoader)
--
Terry Jan Reedy
More information about the Python-Dev
mailing list