]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Mar 2020 23:53:03 +0000 (15:53 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 23:53:03 +0000 (15:53 -0800)
commit69ded3944c202da972754644c0bbf7f77cc5e8ea
tree677867dc32d41df1f30d572be32da7596b623766
parent7ca251bd85f1182b9734579975c17fbd0488e2a4
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.
(cherry picked from commit 0c2b509f9d1d3a9065bc62c2407e1dc2ed70e9c2)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
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