]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115482: Assume the Main Interpreter is Always Running "main" (gh-115484)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 14 Feb 2024 23:07:22 +0000 (16:07 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 23:07:22 +0000 (16:07 -0700)
commit468430189d3ebe16f3067279f9be0fe82cdfadf6
treeffb01d7698345c55dfa0cda5ddcca11a7655162f
parent3e7b7df5cbaad5617cc28f0c005010787c48e6d6
gh-115482: Assume the Main Interpreter is Always Running "main" (gh-115484)

This is a temporary fix to unblock embedders that do not call Py_Main().

_PyInterpreterState_IsRunningMain() will always return true for the main interpreter, even in corner cases where it technically should not. The (future) full solution will do the right thing in those corner cases.
Python/pystate.c