Uh oh!
There was an error while loading. Please reload this page.
bpo-36999: Add asyncio.Task.get_coro() - #13680
Conversation
| .. method:: get_coro() | ||
| Return the coroutine object that was passed to the constructor. |
There was a problem hiding this comment.
I dislike mentioning constructor here.
Above we have the text:
Use the high-level :func:`asyncio.create_task` function to create
Tasks, or the low-level :meth:`loop.create_task` or
:func:`ensure_future` functions. Manual instantiation of Tasks
is discouraged.
Maybe rephrase this line to Return the coroutine object that was used for the task creation. or something like this?
Sorry, I'm not a native speaker. Don't insist on the exact wording but you've got my idea.
There was a problem hiding this comment.
I'd just say this: "Return the coroutine object wrapped by the Task".
| .. method:: get_coro() | ||
| Return the coroutine object that was passed to the constructor. |
There was a problem hiding this comment.
| Return the coroutine object that was passed to the constructor. | |
| Return the coroutine object wrapped by the :class:`Task`. |
@1st1 like this?
There was a problem hiding this comment.
Yeah, I think it's great. If you have time just merge Alex's PR and we can fix this ourselves. Up to you.
There was a problem hiding this comment.
I changed the wording now as requested.
asvetlov
commented
May 30, 2019
Thanks! |
https://bugs.python.org/issue36999