Skip to content

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Feb 14, 2024

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.

@ericsnowcurrently
Copy link
Member Author

@freakboy3742, please let me know if this does not get the test passing for you.

@freakboy3742
Copy link
Contributor

I can confirm this works for me. Thanks for the fast response!

@ericsnowcurrently ericsnowcurrently merged commit 4684301 into python:main Feb 14, 2024
@ericsnowcurrently ericsnowcurrently deleted the temp-fix-interp-running-main branch February 14, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants