[Python-checkins] [python/cpython] 4f9a44: bpo-30891: Fix importlib _find_and_load() race con...
GitHub
noreply at github.com
Mon Jul 10 16:52:33 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: 4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7
https://github.com/python/cpython/commit/4f9a446f3fb42f800e73cd9414dd1eccb3ca4fa7
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-07-10 (Mon, 10 Jul 2017)
Changed paths:
M Lib/importlib/_bootstrap.py
M Python/import.c
M Python/importlib.h
Log Message:
-----------
bpo-30891: Fix importlib _find_and_load() race condition (#2646)
* Rewrite importlib _get_module_lock(): it is now responsible to hold
the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
sys.modules to prevent a race condition
More information about the Python-checkins
mailing list