[Python-Dev] More optimisation ideas (original) (raw)

Brett Cannon brett at python.org
Sun Jan 31 20:09:27 EST 2016


On Sun, 31 Jan 2016, 15:36 Terry Reedy <tjreedy at udel.edu> wrote:

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 execmodule() 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.

Feel free to open an issue to clarify the wording.

-Brett

> For those same > reasons, the loader’s createmodule() 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 at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160201/1e0c5ce6/attachment.html>



More information about the Python-Dev mailing list