summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_lazy.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-117182: Allow lazily loaded modules to modify their own __class__Chris Markiewicz2024-04-091-0/+28
|
* gh-117178: Recover lazy loading of self-referential modules (#117179)Chris Markiewicz2024-03-281-0/+18
|
* gh-114763: Protect lazy loading modules from attribute access races (GH-114781)Chris Markiewicz2024-02-241-2/+40
| | | Setting the __class__ attribute of a lazy-loading module to ModuleType enables other threads to attempt to access attributes before the loading is complete. Now that is protected by a lock.
* bpo-46425: fix direct invocation of `test_importlib` (GH-30682)Nikita Sobolev2022-01-221-1/+1
|
* bpo-36766: Typos in docs and code comments (GH-13116)penguindustin2019-05-061-1/+1
|
* Issue #26186: Remove the restriction that built-in and extensionBrett Cannon2016-06-251-0/+2
| | | | | | | | 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.
* Fix a scoping issue where an UnboundLocalError was triggered if aBrett Cannon2016-06-251-3/+13
| | | | lazy-loaded module was already in sys.modules.
* Issue #26186: Remove an invalid type check inBrett Cannon2016-02-211-0/+1
| | | | | | | | | | | importlib.util.LazyLoader. The class was checking its argument as to whether its implementation of create_module() came directly from importlib.abc.Loader. The problem is that the classes coming from imoprtlib.machinery do not directly inherit from the ABC as they come from _frozen_importlib. Because the documentation has always said that create_module() was ignored, the check has simply been removed.
* Issue #17621: Introduce importlib.util.LazyLoader.Brett Cannon2014-04-041-0/+132