You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No such class: multiprocessing.pool.AsyncResult #62005
Activity
tkf commentedon Apr 20, 2013
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?
sbt commentedon May 2, 2013
It might be simplest to make the implementation match the docs by making AsyncResult an alias for ApplyResult.
python-dev commentedon May 6, 2013
New changeset 2684176519ef by Richard Oudkerk in branch '2.7':
Issue bpo-17805: Add AsyncResult alias for ApplyResult
http://hg.python.org/cpython/rev/2684176519ef
New changeset bb4bb2db6106 by Richard Oudkerk in branch '3.3':
Issue bpo-17805: Add AsyncResult alias for ApplyResult
http://hg.python.org/cpython/rev/bb4bb2db6106
Volker-Weissmann commentedon Jul 2, 2020
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
remilapeyre commentedon Jul 2, 2020
Hi Volker Weißmann, this issue has been closed for 7 years, if you want to propose a change, please open a new issue.
Volker-Weissmann commentedon Jul 2, 2020
Tomorror, or in a few days, I'm gonna create a pullrequest for it.