GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.13] gh-146004: propagate all -X options to multiprocessing child processes (GH-146005) by danielKim614 · Pull Request #155938 · python/cpython

Conversation

@danielKim614

@danielKim614 danielKim614 commented Aug 17, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Propagate all -X command line options to multiprocessing spawned child Python processes. (cherry picked from commit 1efe441)

  • Issue: recent -X options do not auto-propagate to multiprocessing processes #146004

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gpshead @danielKim614
[3.13] pythongh-146004: propagate all -X options to multiprocessing c…
08066c6
…hild processes (pythonGH-146005)

Propagate all -X command line options to multiprocessing spawned child Python processes.
(cherry picked from commit 1efe441)

Co-authored-by: Gregory P. Smith <[email protected]>
@danielKim614
danielKim614 requested a review from gpshead as a code owner August 17, 2026 06:33
This was referenced Aug 17, 2026
recent -X options do not auto-propagate to multiprocessing processes #146004
Closed
gh-146004: propagate all -X options to multiprocessing child processes #146005
Merged
@bedevere-app bedevere-app Bot added the awaiting review label Aug 17, 2026
@corona10 corona10 added the sprint label Aug 17, 2026
@github-project-automation github-project-automation Bot added this to Sprint Aug 17, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Sprint Aug 17, 2026
@danielKim614

danielKim614 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Hi @corona10 @hugovk, this is a manual 3.13 backport of GH-146005 as part of the PyCon KR sprint (the bot couldn't backport it cleanly because of a conflict).

hugovk reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hugovk
hugovk approved these changes Aug 17, 2026
View reviewed changes

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks! 🚀

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

danielKim614 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Sprint Aug 17, 2026
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Aug 17, 2026
@hugovk
hugovk enabled auto-merge (squash) August 17, 2026 06:40
@hugovk
hugovk merged commit d3f5290 into python:3.13 Aug 17, 2026
47 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from In Progress to Done in Sprint Aug 17, 2026
@bedevere-app bedevere-app Bot removed the awaiting merge label Aug 17, 2026
@chris-eibl

chris-eibl commented Aug 17, 2026

Copy link
Copy Markdown
Member

This broke some Windows build bots. I've triggered a backport of #146580, which should fix it: #155965

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chris-eibl
chris-eibl reviewed Aug 17, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-03-16-00-00-00.gh-issue-146004.xOptProp.rst
child processes spawned by :mod:`multiprocessing`, not just a hard-coded
subset. This makes the behavior consistent between default "spawn" and
"forkserver" start methods and the old "fork" start method. The options
that were previously not propagated are: ``context_aware_warnings``,

@chris-eibl chris-eibl Aug 17, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Strictly speaking, not all of these apply to 3.13, for examply lazy_imports is 3.15. We haven't been that picky in the 3.14 backport, either, and the tests pass, because unsupported -X options are just silently ignored.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

danielKim614 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@danielKim614 danielKim614 Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for catching this and for opening #155965!
Using os_helper.temp_dir() should make the test portable on Windows.
Good point about the version-specific options as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chris-eibl chris-eibl chris-eibl left review comments
@hugovk hugovk hugovk approved these changes
@gpshead gpshead Awaiting requested review from gpshead gpshead is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

sprint

Projects

Sprint
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@danielKim614 @chris-eibl @hugovk @corona10 @gpshead
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.