compiler_set_qualname is called at the end of _PyCompile_EnterScope, after the compiler entered the scope. If it fails, _PyCompile_EnterScope returns error (without reverting the scope entry) and the caller would assume that there was no change in scope.
Linked PRs
compiler_set_qualnameis called at the end of_PyCompile_EnterScope, after the compiler entered the scope. If it fails,_PyCompile_EnterScopereturns error (without reverting the scope entry) and the caller would assume that there was no change in scope.Linked PRs