commit | 98ef92002ec289bf8086b0ef3d4f96c2589f4e68 | [log] [tgz] |
---|---|---|
author | Alex Grönholm <alex.gronholm@nextday.fi> | Thu May 30 18:30:09 2019 +0300 |
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu May 30 08:30:09 2019 -0700 |
tree | 0c3420f69cef6e0c306af7508fdd06415b39a853 | |
parent | 25ee0c3bf10820496448e2886069f9c2794be7ac [diff] [blame] |
bpo-36999: Add asyncio.Task.get_coro() (GH-13680) https://bugs.python.org/issue36999
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 78e7600..95e8560 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py
@@ -152,6 +152,9 @@ 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