[issue15064] Use context manager protocol for more multiprocessing types
Dan O'Reilly
report at bugs.python.org
Mon Apr 27 17:07:10 CEST 2015
Dan O'Reilly added the comment:
It's probably too late to do anything about this now, but wouldn't it make more sense for `Pool.__exit__` to call `close`, rather than `terminate`? The vast majority of the time, that's probably what the user of the `Pool` would want to run. It also would make the behavior consistent with `concurrent.futures.ProcessPoolExecutor`, which will always wait for pending tasks to complete before exiting the `with` block.
----------
nosy: +dan.oreilly
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15064>
_______________________________________
More information about the Python-bugs-list
mailing list