◐ Shell
clean mode source ↗

[3.6] bpo-30891: Fix importlib _find_and_load() race condition (#2646) by vstinner · Pull Request #2651 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 1 commit into

Jul 10, 2017

Conversation

@vstinner

  • 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
    (cherry picked from commit 4f9a446)
* 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
(cherry picked from commit 4f9a446)

@vstinner vstinner deleted the importlib_module_lock36 branch

July 10, 2017 21:16

2 participants

@vstinner @the-knights-who-say-ni