[issue35491] multiprocessing: enhance repr()

STINNER Victor report at bugs.python.org
Fri Dec 14 06:10:02 EST 2018


New submission from STINNER Victor <vstinner at redhat.com>:

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 <vstinner at redhat.com>
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

----------
components: Library (Lib)
messages: 331795
nosy: vstinner
priority: normal
severity: normal
status: open
title: multiprocessing: enhance repr()
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35491>
_______________________________________


More information about the Python-bugs-list mailing list