[3.7] bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) by miss-islington · Pull Request #11921 · python/cpython

@tjb900 @miss-islington

…ving from sys.modules (pythonGH-9047)

Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially-loaded modules.
(cherry picked from commit 4371c0a)

Co-authored-by: tjb900 <ozburgess@gmail.com>

@bedevere-bot mentioned this pull request

Feb 18, 2019