[issue32610] asyncio.all_tasks() should return only non-finished tasks.

Yury Selivanov report at bugs.python.org
Sun Jan 21 11:49:12 EST 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

I agree, returning done tasks is pretty useless.

This is a new function so let's fix its behavour.  We need to:

1. Document this difference between new asyncio.all_tasks() and now deprecated Task.all_tasks().

2. Make sure that Task.all_tasks() works in 3.7 in the same way it was working before 3.7.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32610>
_______________________________________


More information about the Python-bugs-list mailing list