Closed
Description
asyncio.TaskGroup
keeps references to errors after raising ExceptionGroup. This is because it keeps a ref to list of errors in errors
local and since this local is kept alive by frame via traceback, this causes ref cycles. The correct fix is to use self._errors
directly and then assign None
to it in finally.
cpython/Lib/asyncio/taskgroups.py
Lines 127 to 135 in 8d57423
Metadata
Metadata
Assignees
Projects
Status
Done