Author yselivanov
Recipients asvetlov, yselivanov
Date 2018-05-28.20:44:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527540292.28.0.682650639539.issue32610@psf.upfronthosting.co.za>
In-reply-to
Content
After an off-list discussion I think I was able to convince Andrew to change the behaviour of the newly added asyncio.all_tasks() to return only pending tasks.  The logic behind this is that:

1. there's no good known use case for returning a list of all non-GC-ed tasks; if such a case exists, it's easy to implement support for it via 'loop.set_task_factory'.

2. OTOH, whenever one uses Task.all_task() they always want to filter out completed tasks.

3. Since this is a new API, it makes sense to design it right and not strive for backwards compatibility with now deprecated asyncio.Task.all_tasks().
History
Date User Action Args
2018-05-28 20:44:52yselivanovsetrecipients: + yselivanov, asvetlov
2018-05-28 20:44:52yselivanovsetmessageid: <1527540292.28.0.682650639539.issue32610@psf.upfronthosting.co.za>
2018-05-28 20:44:52yselivanovlinkissue32610 messages
2018-05-28 20:44:52yselivanovcreate