]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 2 Mar 2020 23:55:20 +0000 (23:55 +0000)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 23:55:20 +0000 (23:55 +0000)
commit9ddcb914f9c2debe7c1359b2450cd1573e86b91c
tree1967dd5ab55fd5eab0193f042481ec054c655684
parent7ad99821d8ae75222c50e69194a39f535bb058f5
[3.8] bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear (GH-18749) (GH-18756)

Objects do not own weak references to them directly through the __weakref__ list so these
do not need to be traversed by the GC.

(cherry picked from commit 0c2b509)
Lib/test/test_ordered_dict.py
Misc/NEWS.d/next/Core and Builtins/2020-03-02-19-21-21.bpo-39778._YGLEc.rst [new file with mode: 0644]
Objects/odictobject.c