Change by Vincent Bernat :
--
keywords: +patch
nosy: +bernat
nosy_count: 4.0 -> 5.0
pull_requests: +30211
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/32131
___
Python tracker
<https://bugs.p
Vincent Bernat added the comment:
Hummm, I have a hard time finding a short example when `__del__` is not called
until the task is finished. Sorry. I did run into this several time, for
example here: https://github.com/ldo/dbussy/pull/45 (and some internal projects
as well). So, it happens
New submission from Vincent Bernat :
asyncio will only keep weak references to alive tasks (in `_all_tasks`). If a
user does not keep a reference to a task and the task is not currently
executing or sleeping, the user may get "Task was destroyed but it is pending!".
I would sugg