diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-05-30 18:30:09 +0300 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-30 08:30:09 -0700 |
commit | 98ef92002ec289bf8086b0ef3d4f96c2589f4e68 (patch) | |
tree | 0c3420f69cef6e0c306af7508fdd06415b39a853 /Lib/asyncio/tasks.py | |
parent | 25ee0c3bf10820496448e2886069f9c2794be7ac (diff) | |
download | cpython-git-98ef92002ec289bf8086b0ef3d4f96c2589f4e68.tar.gz |
bpo-36999: Add asyncio.Task.get_coro() (GH-13680)
https://bugs.python.org/issue36999
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 78e76003b3..95e85600a2 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -152,6 +152,9 @@ class Task(futures._PyFuture): # Inherit Python Task implementation def _repr_info(self): return base_tasks._task_repr_info(self) + def get_coro(self): + return self._coro + def get_name(self): return self._name |