On Sat, 8 Mar 2014 11:06:54 +0100 Victor Stinner <[email protected]> wrote: > > Attached script: never_deleted2.py, it's almost the same but it > explains better the problem. The script creates MyObject and Future > objects which are never deleted. Calling gc.collect() does *not* break > the reference cycle (between the future, the exception, traceback and > frames). Stopping the event loop does not remove Future nor MyObject > objects. Only exiting Python does remove the Future object.
So clearly the coroutine must be kept alive by something. Regards Antoine. _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
