Chris Meyer <cmeyer1...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44665>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to