Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-138072: Small clarifications and phrasing improvements to asyncio HOWTO#138073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
anordin95 commented Aug 22, 2025 • edited by hugovk
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by hugovk
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Peter Bierma <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
anordin95 commented Sep 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I think all requested changes have been addressed in this PR, besides modifications to the For ease of reference, the style guide says: "In the Python documentation, the use of sentence case in section titles is preferable, but consistency within a unit is more important than following this rule.". Additionally, I think the use of "preferable" above implies there can be reasonable cases that ignore this guidance. I personally prefer the titles as they are now, for the reasons enumerated here. With that in mind, I wonder if leaving them as is would be amenable for folks? |
hugovk commented Sep 4, 2025
Please do rename them to "Awaiting tasks" and "Awaiting coroutines".
That's referring to the The next sentence of the devguide:
![]() Well, the rest is already in sentence case, let's stick to it. |
anordin95 commented Sep 4, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
For reference, I interpreted the style guide as providing some leeway and more generally I think it can make sense to sometimes ignore strict adherence to style guides, in this case, for the sake of content/flow. Either way, it seems my arguments fell short and failed to sway minds! I'll go ahead and change the section titles as requested. P.S. The same idea regarding |
anordin95 commented Sep 10, 2025
Hey folks, I believe all comments have now been addressed. @willingc, @kumaraditya303, @ZeroIntensity would you mind taking another pass? |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM
Uh oh!
There was an error while loading. Please reload this page.
| Then, the event loop needs to manage its internal state and work through | ||
| its processing logic to resume the next job. | ||
| That might sound minor, but in a large program with many ``await``\ s, that | ||
| overhead can add up to a meaningful performance drag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "meaningful" has a positive connotation here, which we don't want. How about this?
| overhead can add up to a meaningful performance drag. | |
| overhead can add up to a major performance drag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure I understand, the concern is that "meaningful" has a positive connotation, which may confuse a reader into thinking we're saying a "performance drag" is a good thing, yeah?
I think "major" would be overstating the effect. The goal was to describe something that's non-trivial or non-negligible. For what it's worth, I think "meaningful" can be used either way e.g. "a meaningful decline in sales", "a meaningful improvement in test scores", etc. Regardless, would switching to "non-trivial" be amenable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, "non-trivial" would imply "complex", which doesn't really fit here. I'd prefer "non-negligible".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
anordin95 commented Oct 14, 2025
@kumaraditya303, I believe this PR was modified to address your requested changes. Could you update that "requested changes" status so we can unblock this PR? |
anordin95 commented Nov 17, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@ZeroIntensity, @willingc - Would y'all mind giving this another pass or approving if it looks good? :) |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
willingc left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @anordin95. I'm going to go ahead and merge. 🎉
b3b63e8 into python:mainUh oh!
There was an error while loading. Please reload this page.
…yncio HOWTO (python#138073) * - Small clarifications and phrasing improvements * nit * Apply suggestions from code review Co-authored-by: Peter Bierma <[email protected]> * clarify event loops when multi threading. * nit * Update Doc/howto/a-conceptual-overview-of-asyncio.rst Co-authored-by: Peter Bierma <[email protected]> * nit * nit * phrasing for threads & event loops. * revert changes to event-loop/thread discussion. * sentence case consistencty. * slight re-arrange. * Sentence case consistency. * tweak language. non-negligible --------- Co-authored-by: Peter Bierma <[email protected]>
…yncio HOWTO (python#138073) * - Small clarifications and phrasing improvements * nit * Apply suggestions from code review Co-authored-by: Peter Bierma <[email protected]> * clarify event loops when multi threading. * nit * Update Doc/howto/a-conceptual-overview-of-asyncio.rst Co-authored-by: Peter Bierma <[email protected]> * nit * nit * phrasing for threads & event loops. * revert changes to event-loop/thread discussion. * sentence case consistencty. * slight re-arrange. * Sentence case consistency. * tweak language. non-negligible --------- Co-authored-by: Peter Bierma <[email protected]>

📚 Documentation preview 📚: https://cpython-previews--138073.org.readthedocs.build/en/138073/howto/a-conceptual-overview-of-asyncio.html#a-conceptual-overview-of-asyncio