]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 2 Mar 2020 23:12:54 +0000 (23:12 +0000)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 23:12:54 +0000 (23:12 +0000)
commit0c2b509f9d1d3a9065bc62c2407e1dc2ed70e9c2
treee4aa312203b373608f069a04d7ad7fd8a61951ea
parentb3b9ade4a3d3fe00d933bcd8fc5c5c755d1024f9
bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear (GH-18749)

Objects do not own weak references to them directly through the __weakref__ list so these
do not need to be traversed by the GC.
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