mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
![]() gh-114763: Protect lazy loading modules from attribute access races (GH-114781)
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.
(cherry picked from commit
|
||
---|---|---|
.. | ||
metadata | ||
resources | ||
__init__.py | ||
_abc.py | ||
_bootstrap.py | ||
_bootstrap_external.py | ||
abc.py | ||
machinery.py | ||
readers.py | ||
simple.py | ||
util.py |