# Feature or enhancement ### Proposal: When my PR was reviewed, some problem was found: https://github.com/python/cpython/pull/133373#discussion_r2072630853 But my code on _GeneratorWrapper was simply copied from [`gen_set_name`](https://github.com/python/cpython/blob/27ed64575d34f04029ba1d353810f3db4f4f045b/Objects/genobject.c#L711) method. So, it seems that there is no critical section in `genobject.c` at all. But there is a possibility to change `name` or `qualname` for generator/async generator/coroutine. IMO, some simple code (`Py_BEGIN_CRITICAL_SECTION` and `Py_END_CRITICAL_SECTION`) should be added to these two methods. Also, `function object` seems to have exactly the same [problem](https://github.com/python/cpython/blob/27ed64575d34f04029ba1d353810f3db4f4f045b/Objects/funcobject.c#L716). <!-- gh-linked-prs --> ### Linked PRs * gh-134377 * gh-154831 <!-- /gh-linked-prs -->