[issue13147] Multiprocessing Pool.map_async() does not have an error_callback parameter

New submission from Jakub Gedeon <kazagistar@gmail.com>: Multiprocessing Pool.map_async() does not have an error_callback paramter as described here http://docs.python.org/library/multiprocessing.html#multiprocessing.pool.mul... 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. ---------- assignee: docs@python components: Documentation messages: 145316 nosy: Jakub.Gedeon, docs@python priority: normal severity: normal status: open title: Multiprocessing Pool.map_async() does not have an error_callback parameter versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Jyrki Pulliainen <jyrki@dywypi.org> added the comment: 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 ---------- nosy: +nailor _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Jyrki Pulliainen <jyrki@dywypi.org> added the comment: Patch attached. This patch removes the error_callback from 2.7's documentation. ---------- keywords: +patch Added file: http://bugs.python.org/file23589/issue13147.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Jyrki Pulliainen <jyrki@dywypi.org> added the comment: Also: note that 2.6 does not document this error_callback, so the issue is present only in 2.7 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Changes by Petri Lehtinen <petri@digip.org>: ---------- keywords: +needs review nosy: +petri.lehtinen stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: 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 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________

Senthil Kumaran <senthil@uthcode.com> added the comment: Thanks for the report, Jakub and for the patch, Jyrki ---------- nosy: +orsenthil resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13147> _______________________________________
participants (5)
-
Jakub Gedeon
-
Jyrki Pulliainen
-
Petri Lehtinen
-
Roundup Robot
-
Senthil Kumaran