[issue22557] Local import is too slow

Nick Coghlan report at bugs.python.org
Sun Oct 5 15:37:36 CEST 2014


Nick Coghlan added the comment:

__import__ is intended as an absolute override (including of the sys.modules cache lookup), so we can't bypass it without breaking backwards compatibility.

It's possible there is room for other optimisations that don't break the import override semantics (such as a fast path for when __import__ is the standard import function).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22557>
_______________________________________


More information about the Python-bugs-list mailing list