[3.8] bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135) by miss-islington · Pull Request #17486 · python/cpython

@mariocj89 @miss-islington

pythonGH-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 b64334c)

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>

pablogsal