]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Feb 2019 15:52:32 +0000 (07:52 -0800)
committerAntoine Pitrou <pitrou@free.fr>
Mon, 18 Feb 2019 15:52:32 +0000 (15:52 +0000)
commit3129432845948fdcab1e05042e99a19e9e2c3c71
tree9084b4be71d8d4b85bbaaea39e0d199743ffbed2
parent0e379d43acc25277f02262212932d3c589a2031b
bpo-34572: change _pickle unpickling to use import rather than retrieving from sys.modules (GH-9047) (GH-11921)

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

Co-authored-by: tjb900 <ozburgess@gmail.com>
Lib/test/pickletester.py
Misc/NEWS.d/next/Library/2018-09-05-03-02-32.bpo-34572.ayisd2.rst [new file with mode: 0644]
Modules/_pickle.c