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

Make generator methodsgen_set_name andgen_set_qualname thread-safe in free-threaded builds #133931

Open
Assignees
corona10
@efimov-mikhail

Description

@efimov-mikhail

Feature or enhancement

Proposal:

When my PR was reviewed, some problem was found:#133373 (comment)
But my code on _GeneratorWrapper was simply copied fromgen_set_name method.

So, it seems that there is no critical section ingenobject.c at all.
But there is a possibility to changename orqualname for generator/async generator/coroutine.
IMO, some simple code (Py_BEGIN_CRITICAL_SECTION andPy_END_CRITICAL_SECTION) should be added to these two methods.

Also,function object seems to have exactly the sameproblem.

Linked PRs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp