python / python/cpython

Multiprocessing: facilitate worker processes printing to GUI shell

Open
#92,633 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-IDLE topic-multiprocessing type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

Currently, multiprocessing functions can be run in IDLE. However, the output of these functions is not displayed in the IDLE shell. This is because the fork done by multiprocessing does not duplicate or inherit the socket connection (https://stackoverflow.com/a/35297841/14432236).

Pitch

The output of multiprocessing functions should be displayed in the IDLE shell if the shell is run. For instance, this example code will be able to run without displaying a termination message if multiprocessing is enabled: https://github.com/python/cpython/issues/92571

Previous discussion

I believe that the last couple bugs that I filed are because of this issue: https://github.com/python/cpython/issues/92622 and https://github.com/python/cpython/issues/92571

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reviewing linked issues 92571 and 92622 and investigating how multiprocessing's fork affects the socket connection used by the IDLE shell; done means worker-process output appears in the IDLE shell without a termination message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.