[New-bugs-announce] [issue36999] Expose the coroutine object in asyncio task objects
Alex Grönholm
report at bugs.python.org
Tue May 21 16:45:37 EDT 2019
New submission from Alex Grönholm <alex.gronholm at nextday.fi>:
Both curio and trio expose the coroutine object belonging to a task as the "coro" attribute. Asyncio exposes this as "_coro" (as does uvloop) but it would be nice to have at least a read-only attribute exposing this as part of the public API.
In some of my libraries I need this object, sometimes for debugging and other times for implementing "crazy" schemes like running parts of the the coroutine function code in a worker thread.
----------
components: asyncio
messages: 343092
nosy: alex.gronholm, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Expose the coroutine object in asyncio task objects
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36999>
_______________________________________
More information about the New-bugs-announce
mailing list