Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
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.