]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Dec 2019 14:59:49 +0000 (06:59 -0800)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2019 14:59:49 +0000 (06:59 -0800)
commit681285d052977e3a3a82ef665e788946fca1ac59
treed4119955d2643e9591b1ad953b5bf3e29c7c365a
parente21aa61e96f8343200e765d119ebe778873a6bf1
bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)

Break cycle generated when saving an exception in socket.py, codeop.py and dyld.py as they keep alive not only the exception but user objects through the ``__traceback__`` attribute.

https://bugs.python.org/issue36820

Automerge-Triggered-By: @pablogsal
(cherry picked from commit b64334cb93d0ddbb551c8cd712942bab2fc72772)

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
Lib/codeop.py
Lib/ctypes/macholib/dyld.py
Lib/socket.py
Misc/NEWS.d/next/Library/2019-05-06-15-34-17.bpo-36820.Eh5mIB.rst [new file with mode: 0644]