bpo-36999: Add asyncio.Task.get_coro() (GH-13680)

https://bugs.python.org/issue36999
This commit is contained in:
Alex Grönholm 2019-05-30 18:30:09 +03:00 committed by Miss Islington (bot)
parent 25ee0c3bf1
commit 98ef92002e
6 changed files with 52 additions and 1 deletions

View file

@ -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