Andrew Svetlov <andrew.svet...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com