This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, greckov, yselivanov
Date 2020-12-02.12:35:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2020-12-02 12:35:29asvetlovsetrecipients: + asvetlov, yselivanov, greckov
2020-12-02 12:35:29asvetlovsetmessageid: <>
2020-12-02 12:35:29asvetlovlinkissue42538 messages
2020-12-02 12:35:29asvetlovcreate