[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Nick Coghlan
Nick Coghlan added the comment: Based on https://github.com/python/cpython/pull/2646/files#r126574323, I'm actually thinking along different lines: I'm starting to think we should move the current sys.modules to sys._modules, and make sys.modules a synchronised wrapper that does the following

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +importlib: _find_and_load() race condition on sys.modules[name] check ___ Python tracker ___

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
New submission from Brett Cannon: Based on all the work currently going into fixing the locking situation for imports, it's probably a good idea to expose it publicly so others can use it. -- components: Library (Lib) messages: 298077 nosy: brett.cannon priority: normal severity: normal