Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiprocessing: enhance repr() to ease debugging #79672

Closed
vstinner opened this issue Dec 14, 2018 · 3 comments
Closed

multiprocessing: enhance repr() to ease debugging #79672

vstinner opened this issue Dec 14, 2018 · 3 comments
Labels
3.8 (EOL) end of life stdlib Python modules in the Lib dir

Comments

@vstinner
Copy link
Member

BPO 35491
Nosy @vstinner
PRs
  • bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() #11138
  • bpo-35491, multiprocessing: replace "RUN" with RUN #11178
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-12-14.11:59:08.436>
    created_at = <Date 2018-12-14.11:10:02.288>
    labels = ['3.8', 'library']
    title = 'multiprocessing: enhance repr() to ease debugging'
    updated_at = <Date 2018-12-16.22:40:51.970>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-12-16.22:40:51.970>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-12-14.11:59:08.436>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2018-12-14.11:10:02.288>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35491
    keywords = ['patch']
    message_count = 3.0
    messages = ['331795', '331806', '331941']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['11138', '11178']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35491'
    versions = ['Python 3.8']

    @vstinner
    Copy link
    Member Author

    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 2b417fb (HEAD -> master, upstream/master)
    Author: Victor Stinner <vstinner@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
    

    @vstinner vstinner added 3.8 (EOL) end of life stdlib Python modules in the Lib dir labels Dec 14, 2018
    @vstinner vstinner changed the title multiprocessing: enhance repr() multiprocessing: enhance repr() to ease debugging Dec 14, 2018
    @vstinner
    Copy link
    Member Author

    New changeset 7acd50a by Victor Stinner in branch 'master':
    bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
    7acd50a

    @vstinner
    Copy link
    Member Author

    New changeset 2dfe351 by Victor Stinner in branch 'master':
    bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
    2dfe351

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant