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-46752: Slight improvements to TaskGroup API#31398

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
gvanrossum merged 3 commits intopython:mainfromgvanrossum:rm-tg-name
Feb 18, 2022

Conversation

@gvanrossum
Copy link
Member

@gvanrossumgvanrossum commentedFeb 17, 2022
edited by bedevere-bot
Loading

  • Remove the optional name argument to the TaskGroup constructor
  • Add an optional name argument to the create_task() method
  • Some cleanup

Note that there's a big discussion on cancellation edge cases going on inbpo-46771, this is unrelated to that and uncontroversial.

I'll also update typeshed.

https://bugs.python.org/issue46752

We're not sure that they are needed, and once in the codewe would never be able to get rid of them.Yury wrote:> Ideally, there should be a way for someone to build a "trace"> of taskgroups/task leading to the current running task.> We could do that using contextvars, but I'm not sure we should> do that in 3.11.
@gvanrossumgvanrossum merged commitd851216 intopython:mainFeb 18, 2022
@gvanrossumgvanrossum deleted the rm-tg-name branchFebruary 18, 2022 05:30
gvanrossum added a commit to python/typeshed that referenced this pull requestFeb 18, 2022
* Remove TaskGroup name arg and get_name() method(We removed those from the implementation.)* Add optional name arg to create_task()Seepython/cpython#31398
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@1st11st11st1 approved these changes

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@gvanrossum@1st1@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp