Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-98608: Fix Failure-handling in new_interpreter() (pythongh-1…
…02658) The error-handling code in new_interpreter() has been broken for a while. We hadn't noticed because those code mostly doesn't fail. (I noticed while working on pythongh-101660.) The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed. The solution is to switch back to the calling thread state first. (cherry picked from commit d1b883b) Co-authored-by: Eric Snow <[email protected]> https: //github.com/python/issues/98608
- Loading branch information