[Python-Dev] Python startup optimization: script vs. service (original) (raw)

Brett Cannon brett at python.org
Mon Oct 2 14:58:30 EDT 2017


On Mon, 2 Oct 2017 at 11:19 Christian Heimes <christian at python.org> wrote:

On 2017-10-02 19:29, Brett Cannon wrote: > My current design for an opt-in lazy importing setup includes an > explicit function for importlib that's mainly targeted for the stdlib > and it's startup module needs, but could be used by others: > https://notebooks.azure.com/Brett/libraries/di2Btqj7zSI/html/Lazy%20importing.ipynb

Awesome, thanks Brett! :)

Well, I have to find the time to try and get this in for Python 3.7 (I'm currently working with Barry on a pkg_resources replacement so there's a queue :) .

Small nit pick, you need to add a special case for blocked imports.

Added a note at the end of the notebook about needing to make sure that's properly supported.

-Brett


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/20171002/4438c751/attachment.html>



More information about the Python-Dev mailing list