Skip to content

gh-153711: Add runtime guards for dup3 & pipe2 - #155174

Open
encukou wants to merge 6 commits into
python:mainfrom
encukou:dup3-pipe2
Open

gh-153711: Add runtime guards for dup3 & pipe2#155174
encukou wants to merge 6 commits into
python:mainfrom
encukou:dup3-pipe2

Conversation

@encukou

@encukouencukou commented Aug 4, 2026

Copy link
Copy Markdown
Member

This is based on GH-154718 -- I made some changes, then checked @Vamsi-klu's closed PR and realized the work is already nearly done. So, credit where it's due.

This is for macOS only; extending to iOS & others should not be hard but it seems best to test on desktop first.

@ned-deily, do you have the hardware/software to test this easily?

Based on pythonGH-154718
Co-Authored-By: Vamsi-klu <nrvamsi13@gmail.com>
@encukou
encukou requested review from a team and ned-deilyAugust 4, 2026 12:52
@encukouencukou changed the title Add runtime guards for dup3 & pipe2gh-153711: Add runtime guards for dup3 & pipe2Aug 4, 2026
@read-the-docs-community

read-the-docs-communityBot commented Aug 4, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33919133 | 📁 Comparing c36cca8 against main (ef0affb)

🔍 Preview build

2 files changed
±library/os.html
±whatsnew/changelog.html

@ned-deilyned-deily 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.

Other than the two minor fixes for legacy builds, this looks really good. I built and ran test_os on macOS 26 and 27 and on macOS 10.15 with no build failures or regressions. Thank you!

Comment threadModules/posixmodule.c Outdated
Comment threadModules/posixmodule.c Outdated
@bedevere-app

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Sign up for freeto 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

@encukou@ned-deily