Christian Heimes added the comment:

Instead of messing with all modules, we should rather try to improve startup 
time with lazy imports first. Mercurial added an on-demand importer to speed up 
CLI performance. Many years ago I worked on PEP 369 for lazy import. It should 
be much easier to implement with Brett's import system. We'd to come up with a 
syntax, maybe something like:

with lazy import gettext
with lazy from foo import bar


Or we could re-use async keyword:

async import gettext
async from foo import bar

----------
nosy: +christian.heimes

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30152>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to