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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org