gh-76327: freeze_support for non-Windows platforms#104607
Open
zetaloop wants to merge 5 commits intopython:mainfrom
Open
gh-76327: freeze_support for non-Windows platforms#104607zetaloop wants to merge 5 commits intopython:mainfrom
zetaloop wants to merge 5 commits intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Author
|
Backport needed. |
Author
|
Tests done. Note: if we don't modify |
|
The following commit authors need to sign the Contributor License Agreement: |
cmaloney
added a commit
to cmaloney/cpython
that referenced
this pull request
Oct 26, 2025
While `RawIOBase.readinto` should return a count of bytes between 0 and the length of the given buffer, it is not required to. Add validation inside RawIOBase.read that the returned byte count is reasonable.
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gh-76327: freeze_support for non-Windows platforms
This is a brief fix for the multiprocessing frozen executable infinite loop issue on non-Windows platform. #76327
And the
freeze_supportpatch was exactly the same patch from PyInstaller, which already worked for them.This patch does not influence
PyInstaller.However, this patch will enable
cx_freezeor other similar tools to build multiprocessing apps for Linux and Mac.📚 Documentation preview 📚: https://cpython-previews--104607.org.readthedocs.build/