Skip to content

No such class: multiprocessing.pool.AsyncResult #62005

Closed

Description

@tkf
mannequin
BPO 17805
Nosy @remilapeyre, @Volker-Weissmann
PRs
  • Simple Documentation fix: Missing link to return type class. #21291
  • Files
  • ApplyResult.patch
  • 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 2013-05-06.11:27:26.093>
    created_at = <Date 2013-04-20.21:44:09.386>
    labels = ['3.7', '3.8', '3.9', '3.10', 'docs']
    title = 'No such class: multiprocessing.pool.AsyncResult'
    updated_at = <Date 2020-07-03.11:31:44.612>
    user = 'https://bugs.python.org/tkf'

    bugs.python.org fields:

    activity = <Date 2020-07-03.11:31:44.612>
    actor = 'Volker Wei\xc3\x9fmann'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2013-05-06.11:27:26.093>
    closer = 'sbt'
    components = ['Documentation']
    creation = <Date 2013-04-20.21:44:09.386>
    creator = 'tkf'
    dependencies = []
    files = ['29954']
    hgrepos = []
    issue_num = 17805
    keywords = ['patch']
    message_count = 6.0
    messages = ['187466', '188265', '188510', '372889', '372891', '372893']
    nosy_count = 6.0
    nosy_names = ['docs@python', 'python-dev', 'sbt', 'tkf', 'remi.lapeyre', 'Volker Wei\xc3\x9fmann']
    pr_nums = ['21291']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue17805'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']

    Activity

    1. tkf commented on Apr 20, 2013

      tkfmannequin
      MannequinAuthor

      Document mentions AsyncResult but there is no such class.
      http://docs.python.org/2/library/multiprocessing.html#multiprocessing.pool.AsyncResult

      You can check it by simply running:
      python -c 'from multiprocessing.pool import AsyncResult'

      I think it means ApplyResult so I made a patch (attached).

      Note that there managers.py also uses name 'AsyncResult':
      % hg grep AsyncResult
      Doc/library/multiprocessing.rst:83232:.. class:: AsyncResult
      Lib/multiprocessing/managers.py:81039: 'apply_async': 'AsyncResult',
      Lib/multiprocessing/managers.py:81039: 'map_async': 'AsyncResult',
      Lib/multiprocessing/managers.py:81039: 'starmap_async': 'AsyncResult',
      Lib/multiprocessing/managers.py:81039:SyncManager.register('AsyncResult', create_method=False)

      Probably renaming them would be better?

    2. added
      docs
      on Apr 20, 2013
    3. sbt commented on May 2, 2013

      sbtmannequin
      Mannequin

      It might be simplest to make the implementation match the docs by making AsyncResult an alias for ApplyResult.

    4. python-dev commented on May 6, 2013

      python-devmannequin
      Mannequin
    5. Volker-Weissmann commented on Jul 2, 2020

      Volker-Weissmannmannequin
      Mannequin

      The documentation here: https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing.pool
      says that apply_async is "A variant of the apply() method which returns a result object."
      You should replace "a result object" with "a AsyncResult/ApplyResult object" and a link to https://docs.python.org/2/library/multiprocessing.html#multiprocessing.pool.AsyncResult

    6. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      3.10 (EOL)
      on Jul 2, 2020
    7. remilapeyre commented on Jul 2, 2020

      remilapeyremannequin
      Mannequin

      Hi Volker Weißmann, this issue has been closed for 7 years, if you want to propose a change, please open a new issue.

    8. Volker-Weissmann commented on Jul 2, 2020

      Volker-Weissmannmannequin
      Mannequin

      Tomorror, or in a few days, I'm gonna create a pullrequest for it.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)3.7 (EOL)3.8 (EOL)3.9 (EOL)docs

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions