Issue 13147: Multiprocessing Pool.map_async() does not have an error_callback parameter (original) (raw)

Created on 2011-10-10 23:37 by Jakub.Gedeon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue13147.patch nailor,2011-11-02 07:50
Messages (6)
msg145316 - (view) Author: Jakub Gedeon (Jakub.Gedeon) Date: 2011-10-10 23:37
Multiprocessing Pool.map_async() does not have an error_callback paramter as described here http://docs.python.org/library/multiprocessing.html#multiprocessing.pool.multiprocessing.Pool.map_async I assume this is an old configuration that no longer works... I tried to call that parameter by name and I got a Type Error, plus the actual documentation does not mention it at all (and it is missing from similar functions). Recommend it be removed from the documentation, or else better described and implemented.
msg146832 - (view) Author: Jyrki Pulliainen (nailor) * Date: 2011-11-02 07:41
Python 3.x seems to have the error_callback parameter on all *_async operations. However, 2.7 lacks it. I think adding the actual error_callback would be deemed as a new feature, so the right thing would just be removing the documentation. I'll whip up a patch to remove this from the documentation
msg146833 - (view) Author: Jyrki Pulliainen (nailor) * Date: 2011-11-02 07:50
Patch attached. This patch removes the error_callback from 2.7's documentation.
msg146834 - (view) Author: Jyrki Pulliainen (nailor) * Date: 2011-11-02 07:53
Also: note that 2.6 does not document this error_callback, so the issue is present only in 2.7
msg146862 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-11-02 18:03
New changeset 37e34a983d6d by Senthil Kumaran in branch '2.7': Fix Issue13147 - Correct the Multiprocessing Pool.map_async method signature. http://hg.python.org/cpython/rev/37e34a983d6d
msg146863 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2011-11-02 18:04
Thanks for the report, Jakub and for the patch, Jyrki
History
Date User Action Args
2022-04-11 14:57:22 admin set github: 57356
2011-11-02 18:04:53 orsenthil set status: open -> closednosy: + orsenthilmessages: + resolution: fixed
2011-11-02 18:03:44 python-dev set nosy: + python-devmessages: +
2011-11-02 07:55:08 petri.lehtinen set keywords: + needs reviewnosy: + petri.lehtinenstage: patch review
2011-11-02 07:53:06 nailor set messages: +
2011-11-02 07:50:01 nailor set files: + issue13147.patchkeywords: + patchmessages: +
2011-11-02 07:41:34 nailor set nosy: + nailormessages: +
2011-10-10 23:37:50 Jakub.Gedeon create