[issue20032] asyncio.Future.set_exception() creates a reference cycle

Antoine Pitrou report at bugs.python.org
Fri Dec 20 22:47:02 CET 2013


Antoine Pitrou added the comment:

+            self._loop.call_soon(traceback.clear_frames,
+                                 self._exception.__traceback__)

This will keep the traceback alive until called by the event loop, even if self._exception is cleared in the meantime...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20032>
_______________________________________


More information about the Python-bugs-list mailing list