FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132775: Do Not Set __name__ to __main__ With _PyPickle_GetXIData() by ericsnowcurrently · Pull Request #133472 · python/cpython · GitHub

/ cpython Public

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

Merged
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:fix-pypickle-get-xidata
May 5, 2025
Merged

gh-132775: Do Not Set __name__ to __main__ With _PyPickle_GetXIData()#133472
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:fix-pypickle-get-xidata

Conversation

ericsnowcurrently commented May 5, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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 merged commit e961611 into python:main May 5, 2025
ericsnowcurrently deleted the fix-pypickle-get-xidata branch May 5, 2025 23:25
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…Data() (pythongh-133472)

This is a follow-up to pythongh-133107.  I realized that we could end up with an
infinite recursion if we try to run a function from __main__ in a subinterpreter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL