gh-98608: Fix Failure-handling in new_interpreter() (gh-102658) · python/cpython@d1b883b · GitHub
Skip to content

Commit d1b883b

Browse files
gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)
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 gh-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. #98608
1 parent 0214c7a commit d1b883b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)