picnixz
changed the title
Make
gh-64192: Make imap()/imap_unordered() in multiprocessing.Pool actually lazyimap()/imap_unordered() in multiprocessing.Pool actually lazy
Closed
obaltian
changed the title
gh-64192: Make
gh-64192: Make imap()/imap_unordered() in multiprocessing.Pool actually lazyimap()/imap_unordered() in multiprocessing.pool actually lazy
obaltian marked this pull request as ready for review
July 28, 2025 00:30…e-to-multiprocessing Note: I also had to add 1 '=' character to `Doc/whatsnew/3.16.rst` because check-merge-conflict pre-commit hook was detecting legit markdown syntax as a merge conflict string.
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request
Aug 14, 2026…ultiprocessing.pool` (pythonGH-136871) The new argument allows consuming the input iterator lazily, potentially saving memory, and allowing long/infinite iterators. It mirrors the *buffersize* argument to `concurrent.futures.Executor.map` that was added in 3.14. Co-authored-by: Oleksandr Baltian <oleksandr.baltian@maklai.com.ua> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Sasha Baltian <sasha.baltian@hyperexponential.com>