Issue 17805: No such class: multiprocessing.pool.AsyncResult (original) (raw)
Issue17805
Created on 2013-04-20 21:44 by tkf, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
ApplyResult.patch | tkf,2013-04-20 21:44 |
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 21291 | merged | Volker Weißmann,2020-07-03 11:31 |
Messages (6) | ||
---|---|---|
msg187466 - (view) | Author: Takafumi Arakaki (tkf) | Date: 2013-04-20 21:44 |
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? | ||
msg188265 - (view) | Author: Richard Oudkerk (sbt) * ![]() |
Date: 2013-05-02 13:26 |
It might be simplest to make the implementation match the docs by making AsyncResult an alias for ApplyResult. | ||
msg188510 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2013-05-06 11:15 |
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 | ||
msg372889 - (view) | Author: Volker Weißmann (Volker Weißmann) * | Date: 2020-07-02 22:10 |
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 | ||
msg372891 - (view) | Author: Rémi Lapeyre (remi.lapeyre) * | Date: 2020-07-02 22:12 |
Hi Volker Weißmann, this issue has been closed for 7 years, if you want to propose a change, please open a new issue. | ||
msg372893 - (view) | Author: Volker Weißmann (Volker Weißmann) * | Date: 2020-07-02 23:39 |
Tomorror, or in a few days, I'm gonna create a pullrequest for it. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:44 | admin | set | github: 62005 |
2020-07-03 11:31:44 | Volker Weißmann | set | pull_requests: + <pull%5Frequest20440> |
2020-07-02 23:39:59 | Volker Weißmann | set | messages: + |
2020-07-02 22:12:36 | remi.lapeyre | set | nosy: + remi.lapeyremessages: + |
2020-07-02 22:10:37 | Volker Weißmann | set | nosy: + Volker Weißmannmessages: + versions: + Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10, - Python 2.7, Python 3.3, Python 3.4 |
2013-05-06 11:27:26 | sbt | set | status: open -> closedresolution: fixedstage: resolved |
2013-05-06 11:15:19 | python-dev | set | nosy: + python-devmessages: + |
2013-05-02 13:26:29 | sbt | set | messages: + |
2013-04-20 22:07:18 | ned.deily | set | nosy: + sbtversions: - Python 2.6, Python 3.1, Python 3.2, Python 3.5 |
2013-04-20 21:44:09 | tkf | create |