Skip to content

gh-132775: Do Not Set __name__ to __main__ With _PyPickle_GetXIData() #133472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 5, 2025

This is a follow-up to gh-133107. I realized that we could end up with a sort of infinite recursion if we try to run a function from __main__ in a subinterpreter.

@ericsnowcurrently ericsnowcurrently merged commit e961611 into python:main May 5, 2025
42 checks passed
@ericsnowcurrently ericsnowcurrently deleted the fix-pypickle-get-xidata branch May 5, 2025 23:25
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.

1 participant