Repository navigation
Conversation
18 of 49 tasks
Documentation build overview
|
StanFromIreland
approved these changes
Nov 30, 2026
| * - Waits on many network connections, or needs cancellation and timeouts | ||
| - :mod:`asyncio` | ||
| - :mod:`asyncio` | ||
| * - CPU-bound work in :term:`native code` that releases the |
Member
There was a problem hiding this comment.
It would be nice to add the term links here as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The top-level concurrency page added in bac9a53 and untouched since 2012 says the choice of tool depends on the task and ends its intro with "Here's an overview:" with no overview besides the docs toctree for each form of concurrency.
This structure is confusing and doesn't help users to decide between different forms of concurrency.
This adds a table under that sentence with the tool to reach for first for each kind of work, with one column per build. Only CPU-bound Python code differs between the builds.
It also adds a sentence about
asyncio.to_thread()for asyncio programs, and a short transition to the module list that notes asyncio is not listed on this page. asyncio has been listed under "Networking and Interprocess Communication" since 2013, when it was moved there together withselectandselectors(5467da8). This was beforeasyncandawaitwere added to the language, along withasyncio.run()andTaskGroup. Maybe it makes sense to move asyncio here once again? That said, moving it to this chapter would be a separate PR.The multi-threading HOWTO in #162624 will link to this table. Once #162886 is merged I'll link the "CPU-bound" rows to the new glossary entries.