New submission from Takafumi Arakaki:
Document mentions AsyncResult but there is no such class. http://docs.python.org/2/library/multiprocessing.html#multiprocessing.pool.A...
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?
---------- assignee: docs@python components: Documentation files: ApplyResult.patch keywords: patch messages: 187466 nosy: docs@python, tkf priority: normal severity: normal status: open title: No such class: multiprocessing.pool.AsyncResult versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file29954/ApplyResult.patch
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue17805 _______________________________________
Changes by Ned Deily nad@acm.org:
---------- nosy: +sbt versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue17805 _______________________________________
Richard Oudkerk added the comment:
It might be simplest to make the implementation match the docs by making AsyncResult an alias for ApplyResult.
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue17805 _______________________________________
Roundup Robot added the comment:
New changeset 2684176519ef by Richard Oudkerk in branch '2.7': Issue #17805: Add AsyncResult alias for ApplyResult http://hg.python.org/cpython/rev/2684176519ef
New changeset bb4bb2db6106 by Richard Oudkerk in branch '3.3': Issue #17805: Add AsyncResult alias for ApplyResult http://hg.python.org/cpython/rev/bb4bb2db6106
---------- nosy: +python-dev
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue17805 _______________________________________
Changes by Richard Oudkerk shibturn@gmail.com:
---------- resolution: -> fixed stage: -> committed/rejected status: open -> closed
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue17805 _______________________________________
Volker Weißmann volker.weissmann@gmx.de added the comment:
The documentation here: https://docs.python.org/3/library/multiprocessing.html#module-multiprocessin... 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....
---------- nosy: +Volker Weißmann versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue17805 _______________________________________
Rémi Lapeyre remi.lapeyre@henki.fr added the comment:
Hi Volker Weißmann, this issue has been closed for 7 years, if you want to propose a change, please open a new issue.
---------- nosy: +remi.lapeyre
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue17805 _______________________________________
Volker Weißmann volker.weissmann@gmx.de added the comment:
Tomorror, or in a few days, I'm gonna create a pullrequest for it.
----------
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue17805 _______________________________________
Change by Volker Weißmann volker.weissmann@gmx.de:
---------- pull_requests: +20440 pull_request: https://github.com/python/cpython/pull/21291
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue17805 _______________________________________