[issue17805] No such class: multiprocessing.pool.AsyncResult

Takafumi Arakaki report at bugs.python.org
Sat Apr 20 23:44:09 CEST 2013


New submission from Takafumi Arakaki:

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?

----------
assignee: docs at python
components: Documentation
files: ApplyResult.patch
keywords: patch
messages: 187466
nosy: docs at 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 at bugs.python.org>
<http://bugs.python.org/issue17805>
_______________________________________


More information about the Python-bugs-list mailing list