aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-03-21 18:20:20 -0600
committerGitHub <noreply@github.com>2024-03-21 18:20:20 -0600
commitb3d25df8d38b79310587da54dbd88b06a16d4904 (patch)
tree1daf220306410c2485f0bcfee557ddb0fce5022d /Python/marshal.c
parentc4bf58a14f162557038a1535ca22c52b49d81d7b (diff)
downloadcpython-b3d25df8d38b79310587da54dbd88b06a16d4904.tar.gz
cpython-b3d25df8d38b79310587da54dbd88b06a16d4904.zip
gh-105716: Fix _PyInterpreterState_IsRunningMain() For Embedders (gh-117140)
When I added _PyInterpreterState_IsRunningMain() and friends last year, I tried to accommodate applications that embed Python but don't call _PyInterpreterState_SetRunningMain() (not that they're expected to). That mostly worked fine until my recent changes in gh-117049, where the subtleties with the fallback code led to failures; the change ended up breaking test_tools.test_freeze, which exercises a basic embedding situation. The simplest fix is to drop the fallback code I originally added to _PyInterpreterState_IsRunningMain() (and later to _PyThreadState_IsRunningMain()). I've kept the fallback in the _xxsubinterpreters module though. I've also updated Py_FrozenMain() to call _PyInterpreterState_SetRunningMain().
Diffstat (limited to 'Python/marshal.c')
0 files changed, 0 insertions, 0 deletions