commit | 48769a28ad6ef4183508951fa6a378531ace26a4 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu Feb 07 12:09:16 2019 -0800 |
committer | Antoine Pitrou <pitrou@free.fr> | Thu Feb 07 20:09:16 2019 +0000 |
tree | ba8873a08906f32f0a3d992f0d0fb3b7dcf556ec | |
parent | 15526f5be72f547288c16d53526fc74f15ee61ed [diff] |
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384) (GH-11785) Protect dict iterations by wrapping them with _IterationGuard in the following methods: - WeakValueDictionary.copy() - WeakValueDictionary.__deepcopy__() - WeakKeyDictionary.copy() - WeakKeyDictionary.__deepcopy__() (cherry picked from commit 96d37dbcd23e65a7a57819aeced9034296ef747e) Co-authored-by: Fish <ltfish@users.noreply.github.com>