[New-bugs-announce] [issue32415] Add Task.get_loop() and Future.get_loop()

Yury Selivanov report at bugs.python.org
Sat Dec 23 11:59:11 EST 2017

New submission from Yury Selivanov <yselivanov at gmail.com>:

Currently, asyncio code accesses Future._loop and Task._loop property to validate the event loop and implement functions like "Task.all_tasks()".  So the "_loop" is a semi-official public API that other Task & Future implementations must follow in order to be compatible with asyncio code.

I propose to add Future.get_loop() and Task.get_loop() methods, and soft-deprecate ._loop property.

assignee: yselivanov
components: asyncio
messages: 308957
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Add Task.get_loop() and Future.get_loop()
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list