Oct. 22, 2021
3:27 p.m.
Chris Meyer <cmeyer1969@gmail.com> added the comment: Is there a way to reproduce this issue? I run the following code in Python 3.9 and it works as expected (prints "xyz" twice). import asyncio import gc async def xyz(): print("xyz") event_loop = asyncio.get_event_loop() event_loop.create_task(xyz()) t = event_loop.create_task(xyz()) del t gc.collect() event_loop.stop() event_loop.run_forever() ---------- nosy: +cmeyer _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue44665> _______________________________________