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

gh-129205: Update multiprocessing.forkserver to use os.readinto by cmaloney · Pull Request #129425 · python/cpython · GitHub

Repository navigation

gh-129205: Update multiprocessing.forkserver to use os.readinto - #129425

Merged
vstinner merged 6 commits into
python:mainfrom
cmaloney:cmaloney/forkserver_read_signed
Jan 30, 2025
Merged

vstinner merged 6 commits into
python:mainfrom
cmaloney:cmaloney/forkserver_read_signed

Conversation

cmaloney commented Jan 29, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Use a single pre-allocated bytearray for temporary storage, os.readinto it avoiding non-mutable bytes.

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, I just suggest to remove the NEWS entry.

@@ -0,0 +1,2 @@
:mod:`multiprocessing` forkserver now uses :func:`os.readinto` to read pid

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I don't think that it's worth it to document this change to end users. I suggest to remove this NEWS entry.

vstinner enabled auto-merge (squash) January 30, 2025 22:02
vstinner merged commit 10ee2d9 into python:main Jan 30, 2025
cmaloney deleted the cmaloney/forkserver_read_signed branch January 30, 2025 22:26
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
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.

2 participants


Back | FazBrowse Home | New Git URL