[issue42538] AsyncIO strange behaviour
Andrew Svetlov
report at bugs.python.org
Wed Dec 2 07:35:29 EST 2020
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
I understand the issue as the following:
1. You don't save the result of `asyncio.create_task()` somewhere.
The task object is dereferenced and thus you see a warning.
2. With PYTHONASYNCIODEBUG on the task is referenced also by internal debug structure, that's why you don't see the warning.
Perhaps we should store a weak reference to task in _source_traceback
Minor thing but nice to have it fixed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42538>
_______________________________________
More information about the Python-bugs-list
mailing list