A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2016-January/143007.html below:

[Python-Dev] More optimisation ideas

[Python-Dev] More optimisation ideas [Python-Dev] More optimisation ideasTerry 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4