This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: multiprocessing: enhance repr() to ease debugging
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2018-12-14 11:10 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 11138 merged vstinner, 2018-12-14 11:10
PR 11178 merged vstinner, 2018-12-16 21:54
Messages (3)
msg331795 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-14 11:10
multiprocessing.Pool has no __repr__() method, multiprocessing.BaseProcess.__repr__() doesn't contain the pid.

I propose to enhance repr() in the multiprocessing module to ease debug.

commit 2b417fba25f036c2d6139875e389d80e4286ad75 (HEAD -> master, upstream/master)
Author: Victor Stinner <>
Date:   Fri Dec 14 11:13:18 2018 +0100

    Add multiprocessing.Pool.__repr__() (GH-11137)
    * Add multiprocessing.Pool.__repr__() to ease debug
    * RUN, CLOSE and TERMINATE constants values are now strings rather
      than integer to ease debug
msg331806 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-14 11:58
New changeset 7acd50ad8b2a4fe132f7b26980ed3cd209b7ea12 by Victor Stinner in branch 'master':
bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
msg331941 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-12-16 22:40
New changeset 2dfe3511fe310c559d5571c52dcac381f33fd3a6 by Victor Stinner in branch 'master':
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
Date User Action Args
2022-04-11 14:59:09adminsetgithub: 79672
2018-12-16 22:40:51vstinnersetmessages: + msg331941
2018-12-16 21:54:38vstinnersetpull_requests: + pull_request10418
2018-12-14 11:59:08vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-12-14 11:58:56vstinnersetmessages: + msg331806
2018-12-14 11:16:02vstinnersettitle: multiprocessing: enhance repr() -> multiprocessing: enhance repr() to ease debugging
2018-12-14 11:10:12vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request10382
2018-12-14 11:10:02vstinnercreate