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 — gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL session by YvesDup · Pull Request #137118 · python/cpython

Conversation

@YvesDup

@YvesDup YvesDup commented Jul 26, 2025 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This note explains the implications between the location of the function or callable object passed to the target argument and the selected start method when you create a new Process object in a REPL session.

I wonder if I have to add a reference to the issue at end of the note..

This should be backport to: 3.14

  • Issue: REPL: AttributeError: module __mp_main__ has no attribute is_prime in ProcessPoolExecutor example #132898

📚 Documentation preview 📚: https://cpython-previews--137118.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

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

All reactions
@YvesDup
initial commit
c64de22
@YvesDup
YvesDup requested a review from gpshead as a code owner July 26, 2025 14:52
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Jul 26, 2025
@github-project-automation github-project-automation Bot added this to Docs PRs Jul 26, 2025
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 26, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Jul 26, 2025
REPL: AttributeError: module __mp_main__ has no attribute is_prime in ProcessPoolExecutor example #132898
Closed
@YvesDup
Merge branch 'main' into Update-doc-process-target-location
dd2d43e
@gpshead gpshead added the needs backport to 3.14 bugs and security fixes label Jul 27, 2025
@gpshead
Reword, expand, and clarify the limitation, highlighting the REPL case.
607ae4a
@gpshead

gpshead commented Jul 27, 2025

Copy link
Copy Markdown
Member

Thanks! I took this and started looking around the docs to tie things together. reworded now, with cross references.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gpshead gpshead self-assigned this Jul 27, 2025
@gpshead gpshead added the needs backport to 3.13 only security fixes label Jul 27, 2025
@gpshead
Move out of a .. note into the main text. mention in the high level P…
b9773c7
…rocess description.
@gpshead
gpshead force-pushed the Update-doc-process-target-location branch from 83344ec to b9773c7 Compare July 27, 2025 18:59
gpshead added 3 commits July 27, 2025 19:07
@gpshead
move back to a note, it keeps it clear that this is "special"
4ad605a
@gpshead
editing for clarity
2a115a3
@gpshead
formatting
5f36fbf
gpshead
gpshead approved these changes Jul 27, 2025
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Jul 27, 2025
@gpshead gpshead changed the title gh-132898: Add a note in multiprocessing.Process class documentation about how creating a process in a REPL session gh-132898: Add a note in multiprocessing.Process docs about creating a process in a REPL session Jul 27, 2025
@gpshead
add a pointer to the GH issue from the doc note
4b848a9
@gpshead
gpshead merged commit 4e40f2b into python:main Jul 27, 2025
@bedevere-app bedevere-app Bot removed the awaiting merge label Jul 27, 2025
@miss-islington-app

miss-islington-app Bot commented Jul 27, 2025

Copy link
Copy Markdown

Thanks @YvesDup for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

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

Sorry, something went wrong.

Uh oh!

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

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 27, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 27, 2025
@YvesDup @gpshead @miss-islington
pythongh-132898: Add a note in multiprocessing.Process docs about c…
db28dc7
…reating a process in a REPL (pythonGH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------
(cherry picked from commit 4e40f2b)

Co-authored-by: Duprat <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 27, 2025
@YvesDup @gpshead @miss-islington
pythongh-132898: Add a note in multiprocessing.Process docs about c…
d78fb93
…reating a process in a REPL (pythonGH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------
(cherry picked from commit 4e40f2b)

Co-authored-by: Duprat <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@bedevere-app

bedevere-app Bot commented Jul 27, 2025

Copy link
Copy Markdown

GH-137154 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 27, 2025
@bedevere-app

bedevere-app Bot commented Jul 27, 2025

Copy link
Copy Markdown

GH-137155 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jul 27, 2025
gpshead added a commit that referenced this pull request Jul 27, 2025
@miss-islington @YvesDup @gpshead
[3.13] gh-132898: Add a note in multiprocessing.Process docs about …
f867711
…creating a process in a REPL (GH-137118) (#137155)

gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------
(cherry picked from commit 4e40f2b)

Co-authored-by: Duprat <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@YvesDup
YvesDup deleted the Update-doc-process-target-location branch July 27, 2025 20:34
hugovk pushed a commit that referenced this pull request Jul 28, 2025
@miss-islington @YvesDup @gpshead
[3.14] gh-132898: Add a note in multiprocessing.Process docs about …
9da008d
…creating a process in a REPL (GH-137118) (#137154)

Co-authored-by: Duprat <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@YvesDup
YvesDup restored the Update-doc-process-target-location branch July 29, 2025 20:13
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
@YvesDup @gpshead @Agent-Hellboy
pythongh-132898: Add a note in multiprocessing.Process docs about c…
5cdaa9f
…reating a process in a REPL (pythonGH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------

Co-authored-by: Gregory P. Smith <[email protected]>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
@miss-islington @YvesDup
@gpshead @kumaraditya303
[3.14] pythongh-132898: Add a note in multiprocessing.Process docs …
0917766
…about creating a process in a REPL (pythonGH-137118) (python#137154)

Co-authored-by: Duprat <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
@YvesDup
YvesDup deleted the Update-doc-process-target-location branch September 18, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gpshead gpshead gpshead approved these changes

Uh oh!

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

Assignees

@gpshead gpshead

Labels

docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

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.

2 participants

@YvesDup @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.