Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
miss-islington merged 4 commits intopython:masterfromagronholm:fix-issue-36999
May 30, 2019

Conversation

@agronholm
Copy link
Contributor

@agronholmagronholm commentedMay 30, 2019
edited by bedevere-bot
Loading


..method::get_coro()

Return the coroutine object that was passed to the constructor.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I dislike mentioningconstructor 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 toReturn 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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
Return the coroutine objectthat was passed totheconstructor.
Return the coroutine objectwrapped bythe:class:`Task`.

@1st1 like this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah, I think it's great. If you have time just merge Alex's PR and we can fix this ourselves. Up to you.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I changed the wording now as requested.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great!

@asvetlov
Copy link
Contributor

Thanks!

@agronholmagronholm deleted the fix-issue-36999 branchMay 30, 2019 15:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@1st11st11st1 approved these changes

@asvetlovasvetlovasvetlov approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@agronholm@asvetlov@1st1@the-knights-who-say-ni@bedevere-bot@miss-islington

[8]ページ先頭

©2009-2025 Movatter.jp