[issue19185] Allow multiprocessing Pool initializer to return values

Matteo Cafasso report at bugs.python.org
Mon Oct 21 22:28:28 CEST 2013


Matteo Cafasso added the comment:

On 09/10/13 22:59, Richard Oudkerk wrote:
> Yes.  But my point was that somebody might have used such a function as the initializer argument.  The proposed change would break a program which does
>
>      with Pool(initializer=os.nice, initargs=(incr,)) as p:
>          ...
Indeed in cases like that the backward compatibility would break if the 
passed function is accepting a fixed amount of positional arguments.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19185>
_______________________________________


More information about the Python-bugs-list mailing list