Skip to content

Conversation

@cmaloney
Copy link
Contributor

@cmaloneycmaloney commented Jan 29, 2025

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

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

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
Member

Choose a reason for hiding this comment

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

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

@vstinnervstinner enabled auto-merge (squash) January 30, 2025 22:02
@vstinnervstinner merged commit 10ee2d9 into python:mainJan 30, 2025
40 checks passed
@cmaloneycmaloney 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
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@cmaloney@vstinner