]> granicus.if.org Git - python/commit
Issue #26186: Remove the restriction that built-in and extension
authorBrett Cannon <brett@python.org>
Sat, 25 Jun 2016 17:58:17 +0000 (10:58 -0700)
committerBrett Cannon <brett@python.org>
Sat, 25 Jun 2016 17:58:17 +0000 (10:58 -0700)
commit696c35e86bffea1f2bc6179a29e46416899e3de6
tree774b8cec3342b4ca9a2c6d9c193f59b17299f615
parentda037616b10fc12a213e67711065f8123fb98cef
Issue #26186: Remove the restriction that built-in and extension
modules  can't be lazily loaded.

Thanks to Python 3.6 allowing for types.ModuleType to have its
__class__ mutated, the restriction can be lifted by calling
create_module() on the wrapped loader.
Doc/library/importlib.rst
Doc/whatsnew/3.6.rst
Lib/importlib/util.py
Lib/test/test_importlib/test_lazy.py