python / python/cpython

Multiprocessing: facilitate worker processes printing to GUI shell

未關閉
#92,633 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

topic-IDLE topic-multiprocessing type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

此 issue 未列出任何檔案或測試。先檢視相關的 issue 92571 和 92622,並調查 multiprocessing 的 fork 如何影響 IDLE shell 使用的 socket 連線;完成標準是 worker 程序的輸出出現在 IDLE shell 中,且沒有終止訊息。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
desktop
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。