Skip to content

gh-84291: Clarify Pool.imap documentation - #155030

Open
Taeknology wants to merge 1 commit into
python:mainfrom
Taeknology:gh-84291
Open

gh-84291: Clarify Pool.imap documentation#155030
Taeknology wants to merge 1 commit into
python:mainfrom
Taeknology:gh-84291

Conversation

@Taeknology

@Taeknology Taeknology commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Clarify that Pool.imap() is an iterator-based version of Pool.map(), rather than describing it as unconditionally lazy.

Without an explicit buffersize, imap() can consume its input eagerly; buffersize controls how far input consumption proceeds ahead of yielded results.

Closes #84291.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33866998 | 📁 Comparing 4361917 against main (534b6b0)

  🔍 Preview build  

1 file changed
± library/multiprocessing.html

@Taeknology
Taeknology marked this pull request as ready for review August 1, 2026 14:04
@Taeknology
Taeknology requested a review from gpshead as a code owner August 1, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

multiprocessing.Pool.imap() should be lazy

1 participant