]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126986: Stop Using _PyInterpreterState_FailIfNotRunning() (gh-127112)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 21 Nov 2024 17:33:15 +0000 (10:33 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 17:33:15 +0000 (10:33 -0700)
commit8cdd636f877c906121b27934522876a1d9ac12db
tree5893bf5a3ed10f6d7079619993d8fdf18c70a1e2
parentc74331413ea847ff1099f584e5fecbd7f5036f7d
[3.13] gh-126986: Stop Using _PyInterpreterState_FailIfNotRunning() (gh-127112)

This is a pseudo-backport of d6b3e78 (gh-126988).  In that change for 3.14+, we dropped _PyInterpreterState_FailIfNotRunning() and added _PyErr_SetInterpreterAlreadyRunning().  Here, we replace usage of _PyInterpreterState_FailIfNotRunning() with the inlined equivalent of _PyErr_SetInterpreterAlreadyRunning(), without adding that function.  That way we avoid changing the 3.13 ABI.
Python/crossinterp.c
Python/pystate.c